Skip to content

Passio SDK v3.0.3-patch1

Compare
Choose a tag to compare
@marinPassio marinPassio released this 30 Apr 06:06
· 2 commits to main since this release

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)