toggle menu
sdkKIMCore
androidJvm
switch theme
search in API
sdkKIMCore
/
com.kingsoft.kim.core.example.http
/
CommonResult
Common
Result
open
class
CommonResult
通用错误,处理错误码等情况
Inheritors
ChatCreateResponse
ChatNameRsp
CheckInResponse
Contacts
GetTokenResponse
InviteUserResponse
Members
Constructors
Common
Result
Link copied to clipboard
constructor
(
)
constructor
(
result
:
String
,
msg
:
String
)
Properties
ERROR_INVALID_USER
Link copied to clipboard
val
ERROR_INVALID_USER
:
String
=
"invalidUser"
ERROR_UNKNOWN
Link copied to clipboard
val
ERROR_UNKNOWN
:
String
=
"unknown"
ERROR_USER_NOT_LOGIN
Link copied to clipboard
val
ERROR_USER_NOT_LOGIN
:
String
=
"userNotLogin"
msg
Link copied to clipboard
@
Expose
@
SerializedName
(
value
=
"msg"
)
open
var
msg
:
String
MSG_UNKNOWN
Link copied to clipboard
val
MSG_UNKNOWN
:
String
=
"unknown error"
OK
Link copied to clipboard
val
OK
:
String
=
"ok"
PERMISSION_DENIED
Link copied to clipboard
val
PERMISSION_DENIED
:
String
=
"permissionDenied"
result
Link copied to clipboard
@
Expose
@
SerializedName
(
value
=
"result"
)
open
var
result
:
String
TIMEOUT
Link copied to clipboard
val
TIMEOUT
:
String
=
"timeout"
Functions
is
Error
Link copied to clipboard
open
fun
isError
(
targetError
:
String
)
:
Boolean
permission
Denied
Link copied to clipboard
open
fun
permissionDenied
(
)
:
Boolean
timeout
Link copied to clipboard
open
fun
timeout
(
)
:
CommonResult
to
String
Link copied to clipboard
open
fun
toString
(
)
:
String
unknown
Error
Link copied to clipboard
open
fun
unknownError
(
)
:
CommonResult