KServiceDeskVM

class KServiceDeskVM(application: Application) : BaseAndroidViewModel

Constructors

Link copied to clipboard
constructor(application: Application)

Types

Link copied to clipboard
object Companion
Link copied to clipboard

获取群客服信息

Properties

Link copied to clipboard
val postWorkNoteEvent: <Error class: unknown class>
Link copied to clipboard
Link copied to clipboard
val workMenus: <Error class: unknown class>
Link copied to clipboard
val workNotes: <Error class: unknown class>
Link copied to clipboard
val workPanelInfo: <Error class: unknown class>
Link copied to clipboard
val workServicePersons: <Error class: unknown class>
Link copied to clipboard
val workTags: MutableLiveData<MutableList<<Error class: unknown class>>?>

Functions

Link copied to clipboard
fun checkTagsDiff(defaultSelectedTags: Map<Long, <Error class: unknown class>>?, tags: MutableList<<Error class: unknown class>>): Boolean
Link copied to clipboard
suspend fun diskWorkAsync(operateBlock: suspend CoroutineScope.() -> Unit)
Link copied to clipboard
suspend fun <T> diskWorkAwait(operateBlock: suspend CoroutineScope.() -> T): T
Link copied to clipboard
fun fetchWorkMenus(chatId: Long, helperId: Long)

获取服务台自定义菜单列表

Link copied to clipboard

获取服务台自定义菜单列表

Link copied to clipboard
fun fetchWorkNotes(ticketId: Long?)

工单备注

Link copied to clipboard

工单面板信息

Link copied to clipboard

拉取客服列表

Link copied to clipboard
fun fetchWorkTags(helperDeskId: Long?)

标签

Link copied to clipboard
Link copied to clipboard
suspend fun <T> netWorkAwait(operateBlock: suspend (CoroutineScope) -> T): T
Link copied to clipboard
fun postServiceWorkMenu(helpdeskId: Long, menuId: Long, chatId: Long)

触发服务台自定义菜单

Link copied to clipboard
fun postTransferServicePerson(chatId: Long, msgId: Long)

转人工客服

Link copied to clipboard
fun postWorkNote(ticketId: Long?, content: String)

添加工单备注

Link copied to clipboard
fun putAddWorkTags(ticketId: Long, tagIds: List<Long>)

添加工单标签

Link copied to clipboard
fun putFinishWork(ticketId: Long?)

结束工单

Link copied to clipboard
fun putTransferWork(ticketId: Long, serviceUserId: Long, exitAfterTransfer: Boolean, note: String)

转接工单

Link copied to clipboard
fun uploadTagsChange(ticketId: Long, defaultTags: MutableList<<Error class: unknown class>>?, selectedTags: MutableList<<Error class: unknown class>>)
Link copied to clipboard
fun viewModelLaunch(continuation: suspend CoroutineScope.() -> Unit, commonError: (Throwable) -> Unit?, requestError: (RuntimeException) -> Unit?, error: (Throwable) -> Boolean?)