ConversationRepository

@Singleton
class ConversationRepository @Inject constructor(webservice: DefaultApi, cache: Cache<ConversationDTO>)

Constructors

Link copied to clipboard
@Inject
constructor(webservice: DefaultApi, cache: Cache<ConversationDTO>)

Functions

Link copied to clipboard
Link copied to clipboard
suspend fun createConversation(conversationCreateDTO: ConversationCreateDTO): Result<ConversationDTO>
Link copied to clipboard
fun getCachedConversations(): Result<List<ConversationDTO>>
Link copied to clipboard
suspend fun getConversations(queryPage: QueryPage): Result<List<ConversationDTO>>