package com.atmob.keyboard_android.util.bridge.api

/**
 * 用户相关的API
 */
interface UserApi {
    /**
     * 用户是否已登录
     */
    fun isLogin(
        onSuccess: (resultObj: Boolean) -> Unit,
        onFail: (errorCode: Int, errorMsg: String) -> Unit
    )

    /**
     * 用户是否为VIP
     */
    fun isMember(
        onSuccess: (resultObj: Boolean) -> Unit,
        onFail: (errorCode: Int, errorMsg: String) -> Unit
    )
}