SellerRepository

@Singleton
class SellerRepository @Inject constructor(webservice: DefaultApi, cache: Cache<SellerDto>, dataCache: Cache<StoryData>, itemsCache: Cache<ItemsContainer>)

Constructors

Link copied to clipboard
@Inject
constructor(webservice: DefaultApi, cache: Cache<SellerDto>, dataCache: Cache<StoryData>, itemsCache: Cache<ItemsContainer>)

Types

Functions

Link copied to clipboard
suspend fun actionWithItem(operationType: SellerRepository.OperationType, uuid: UUID, sellerId: Long, quantity: Int): Result<Status>
Link copied to clipboard
Link copied to clipboard
fun getCachedItems(): Result<ItemsContainer>
Link copied to clipboard
fun getCachedSeller(id: Long): Result<SellerDto>
Link copied to clipboard
suspend fun getItems(): Result<ItemsContainer>
Link copied to clipboard
suspend fun getSeller(id: Long): Result<SellerDto>