Passio SDK v3.0.3-patch1
Passio SDK v3.0.3-patch1
- Refactored PassioSearchNutritionPreview
data class PassioSearchNutritionPreview(
val calories: Int,
val carbs: Double,
val protein: Double,
val fat: Double,
val servingUnit: String,
val servingQuantity: Double,
val weightUnit: String,
val weightQuantity: Double
)
- Added refCode as an attribute to the PassioFoodItem and PassioIngredient classes.
- Added method to fetch a food item using just the refCode attribute
fun fetchFoodItemForRefCode(refCode: String, callback: (foodItem: PassioFoodItem?) -> Unit)