Skip to content

Instantly share code, notes, and snippets.

@FannyDemey
Last active September 12, 2023 12:07
Show Gist options
  • Save FannyDemey/fb43af7a08085be927b85f031899ded7 to your computer and use it in GitHub Desktop.
Save FannyDemey/fb43af7a08085be927b85f031899ded7 to your computer and use it in GitHub Desktop.
object FakeDataSource {
val ALL_PRODUCTS = listOf<Product>(
Product(
id = "3",
productName = "Tarte au citron meuringué",
productPrice = 3.15f,
imageUrl = "https://firebasestorage.googleapis.com/v0/b/training-compose.appspot.com/o/tarte-citron.jpeg?alt=media&token=2fb45a95-d589-4519-bb43-f95f1791f6da",
maxQuantity = 4,
),
Product(
id = "4",
productName = "Mini cake",
productPrice = 1.45f,
imageUrl = "https://firebasestorage.googleapis.com/v0/b/training-compose.appspot.com/o/minicake.jpeg?alt=media&token=e879f84b-88d1-41ba-b3e7-e52af66ddb1a",
maxQuantity = 4,
),
Product(
id = "1",
productName = "Pain",
productPrice = 1.15f,
imageUrl = "https://firebasestorage.googleapis.com/v0/b/training-compose.appspot.com/o/pain.png?alt=media&token=7af8db9e-0d2b-4ee6-b5af-de332538389c",
maxQuantity = 4,
),
Product(
id = "2",
productName = "Briochette pur beurre",
productPrice = 2.50f,
imageUrl = "https://firebasestorage.googleapis.com/v0/b/training-compose.appspot.com/o/briochettes.jpeg?alt=media&token=cc17d4bf-3f4a-4a45-99a7-0bf8570c930a",
maxQuantity = 4,
),
Product(
id = "5",
productName = "Croissant pur beurre",
productPrice = 1.05f,
imageUrl = "https://firebasestorage.googleapis.com/v0/b/training-compose.appspot.com/o/croissant.jpeg?alt=media&token=1fc78e65-328e-431b-a869-3de61e136882",
maxQuantity = 10,
),
Product(
id = "6",
productName = "Pain aux céréales",
productPrice = 2.15f,
imageUrl = "https://firebasestorage.googleapis.com/v0/b/training-compose.appspot.com/o/pain.png?alt=media&token=7af8db9e-0d2b-4ee6-b5af-de332538389c",
maxQuantity = 8,
),
Product(
id = "7",
productName = "Cake",
productPrice = 6.95f,
imageUrl = "https://firebasestorage.googleapis.com/v0/b/training-compose.appspot.com/o/cake-a-partager.png?alt=media&token=28f4c946-634d-42cf-82fe-f5815881a7e3",
maxQuantity = 10,
),
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment