RobotoffRepository

@Singleton
class RobotoffRepository @Inject constructor(context: Context, robotoffAPI: RobotoffAPI)

Constructors

Link copied to clipboard
@Inject
fun RobotoffRepository(context: Context, robotoffAPI: RobotoffAPI)

Functions

Link copied to clipboard
suspend fun annotateInsight(answer: AnnotationAnswer): AnnotationResponse

Annotate the Robotoff insight response using insight id and annotation

Link copied to clipboard
suspend fun getProductQuestion(code: String, lang: String): Question?

Loads Robotoff question from the local database by code and lang of question.