Product Repository
@Singleton
Content copied to clipboard
API Client for all API callbacks
Constructors
Link copied to clipboard
@Inject
Content copied to clipboard
Types
Functions
Link copied to clipboard
Add a product to ScanHistory asynchronously
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun getInfoAddedIncompleteProductsSingle(contributor: String, page: Int): Search
Content copied to clipboard
Link copied to clipboard
suspend fun getInfoAddedProducts(contributor: String?, page: Int): Search
Content copied to clipboard
Link copied to clipboard
suspend fun getIngredients(product: Product): Result<List<ProductIngredient>>
Content copied to clipboard
Link copied to clipboard
suspend fun getPeriodAfterOpeningSuggestions(term: String): ArrayList<String>
Content copied to clipboard
Link copied to clipboard
suspend fun getPicturesContributedIncompleteProducts(contributor: String?, page: Int): Search
Content copied to clipboard
Link copied to clipboard
suspend fun getPicturesContributedProducts(contributor: String, page: Int): Search
Content copied to clipboard
Link copied to clipboard
Open the product activity if the barcode exist. Also add it in the history if the product exist.
Link copied to clipboard
call API service to return products using Additives
Link copied to clipboard
Link copied to clipboard
suspend fun getProductsByBarcode(codes: List<String>, customHeader: String = ApiFields.UserAgents.SEARCH): List<SearchProduct>
Content copied to clipboard
Link copied to clipboard
Search for products using brand name
Link copied to clipboard
Link copied to clipboard
suspend fun getProductsByContributor(contributor: String, page: Int): Search
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun getProductsByManufacturingPlace(manufacturingPlace: String, page: Int): Search
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Content copied to clipboard
suspend fun getProductStateFull( barcode: Barcode, fields: String = getAllFields(localeManager.getLanguage()), userAgent: String = ApiFields.UserAgents.SCAN): ProductState
Content copied to clipboard
Link copied to clipboard
suspend fun getToBeCompletedProductsByContributor(contributor: String, page: Int): Search
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun unSelectImage( code: String, field: ProductImageField, language: String): String
Content copied to clipboard
Unselect the image.
Link copied to clipboard
Uploads images of the offline saved products.