logo
In-app Chat
On this page

Enum

2026-01-23
ZIMCallInvitationModeZIMCallState
ZIMCallUserStateZIMConnectionEvent
ZIMConnectionStateZIMConversationEvent
ZIMConversationNotificationStatusZIMConversationType
ZIMCXHandleTypeZIMErrorCode
ZIMFriendApplicationStateZIMFriendApplicationType
ZIMFriendDeleteTypeZIMFriendRelationCheckType
ZIMGeofencingTypeZIMGroupAttributesUpdateAction
ZIMGroupEnterTypeZIMGroupEvent
ZIMGroupMemberEventZIMGroupMemberState
ZIMGroupMessageNotificationStatusZIMGroupState
ZIMMediaFileTypeZIMMessageDirection
ZIMMessageOrderZIMMessagePriority
ZIMMessageReceiptStatusZIMMessageRevokeStatus
ZIMMessageSentStatusZIMMessageType
ZIMRevokeTypeZIMRoomAttributesUpdateAction
ZIMRoomEventZIMRoomState
ZIMUserOnlineStatusZIMUserRelationType

ZIMCXHandleType

Type of contact information for the VoIP initiator.

Declared in ZIMDefines.cs

Properties

PhoneNumber

PhoneNumber
PhoneNumber=(2)

A phone number.

EmailAddress

EmailAddress
EmailAddress=(3)

An email address.

Generic

Generic
Generic=(1)

An unspecified type of handle.

ZIMCallInvitationMode

Call invitation mode.

Details

Call invitation mode.

Declared in ZIMDefines.cs

Properties

General

General
General=(0)

general.

Advanced

Advanced
Advanced=(1)

advanced

Unknown

Unknown
Unknown=(-1)

Unknown type, as a guaranteed enumeration value.

ZIMCallState

call status.

Details

call status.

Declared in ZIMDefines.cs

Properties

Unknown

Unknown
Unknown=(-1)

unknown.

Started

Started
Started=(1)

started.

Ended

Ended
Ended=(2)

ended.

ZIMCallUserState

Call user status.

Details

Call user status.

Declared in ZIMDefines.cs

Properties

Inviting

Inviting
Inviting=(0)

inviting.

Accepted

Accepted
Accepted=(1)

accepted.

Rejected

Rejected
Rejected=(2)

rejected.

Cancelled

Cancelled
Cancelled=(3)

cancelled.

Offline

Offline
deprecated
Offline=(4)

offline.

Deprecated
The offline enumeration value has been discarded in ZIM 2.9.0 and later versions.

Received

Received
Received=(5)

received.

Timeout

Timeout
Timeout=(6)

timeout.

Quit

Quit
Quit=(7)

quit.

Unknown

Unknown
Unknown=(-1)

unknown

Ended

Ended
Ended=(8)

ended.

NotYetReceived

NotYetReceived
NotYetReceived=(9)

Not received.

BeCancelled

BeCancelled
BeCancelled=(10)

Be cancelled.

ZIMConnectionEvent

The event that caused the connection status to change.

Details

The reason for the change of the connection state.

  • Use cases: It can be used to determine whether the login/logout is successful, and to handle abnormal situations such as network disconnection.
  • Caution: Please use it with the connection state parameter.

Declared in ZIMDefines.cs

Properties

Success

Success
Success=(0)

Success.

ActiveLogin

ActiveLogin
ActiveLogin=(1)

The user actively logs in.

LoginTimeout

LoginTimeout
LoginTimeout=(2)

Connection timed out.

LoginInterrupted

LoginInterrupted
LoginInterrupted=(3)

The network connection is temporarily interrupted.

KickedOut

KickedOut
KickedOut=(4)

Being kicked out.

TokenExpired

TokenExpired
TokenExpired=(5)

Detail description: Disconnected due to expired login token.

Business scenario: When the developer uses Token authentication to log in, and does not call [renewToken] to update the Token after the Token validity period expires, the connection will be disconnected.

ZIMConnectionState

Connection state.

Details

The state machine that identifies the current connection state.

  • Use cases: It can be used to determine whether the login/logout is successful, and to handle abnormal situations such as network disconnection.
  • Caution: Please use it with the connection event parameter.

Declared in ZIMDefines.cs

Properties

Disconnected

Disconnected
Disconnected=(0)

Unconnected state, enter this state before logging in and after logging out.

  • Use cases: If there is a steady state abnormality in the process of logging in, such as AppID or Token are incorrect, or if the same user name is logged in elsewhere and the local end is kicked out, it will enter this state.

Connecting

Connecting
Connecting=(1)

The state that the connection is being requested. It will enter this state after successful execution login function.

  • Use cases: The display of the UI is usually performed using this state. If the connection is interrupted due to poor network quality, the SDK will perform an internal retry and will return to this state.

Connected

Connected
Connected=(2)

The state that is successfully connected.

  • Use cases: Entering this state indicates that login successfully and the user can use the SDK functions normally.

Reconnecting

Reconnecting
Reconnecting=(3)

The connection is being reconnected.

  • Use cases: In this state, you are logging in again.

ZIMConversationEvent

conversation changed event.

Declared in ZIMDefines.cs

Properties

Added

Added
Added=(0)

Updated

Updated
Updated=(1)

Disabled

Disabled
Disabled=(2)

Deleted

Deleted
Deleted=(3)

ZIMConversationNotificationStatus

Enumeration of conversation notification status.

Details

Conversation notification status.

  • Use cases: You can determine the notification status of a conversation by modifying enumeration.

Declared in ZIMDefines.cs

Properties

Notify

Notify
Notify=(1)

DoNotDisturb

DoNotDisturb
DoNotDisturb=(2)

ZIMConversationType

Conversation type.

Declared in ZIMDefines.cs

Properties

Peer

Peer
Peer=(0)

Conversation type peer.

Room

Room
Room=(1)

Conversation type room.

Group

Group
Group=(2)

Conversation type group.

Unknown

Unknown
Unknown=(3)

Unknown.

ZIMErrorCode

The define of error code.

Details

Developers can find the details of the error code in the developer documentation website according to the error code.

  • Use cases: It can be used to collect and record errors in the process of using the SDK.

Declared in ZIMErrorCode.cs

Properties

Success

Success
Success=(0)

Success without exception.

  • Use cases: Used to indicate that the operation is executed correctly.

Failed

Failed
Failed=(1)

Failed, the guarantee is wrong.

  • Use cases: Used in the operation guarantee strategy.

CommonModuleParamInvalid

CommonModuleParamInvalid
CommonModuleParamInvalid=(6000001)

The incoming parameter is invalid.

Use case: Used to protect the bottom strategy when the interface call fails due to incorrect parameters.

CommonModuleNotInit

CommonModuleNotInit
CommonModuleNotInit=(6000002)

The SDK is not initialized.

Use case: Used for error return when the ZIM SDK is not initialized successfully.

CommonModuleInvalidAppID

CommonModuleInvalidAppID
CommonModuleInvalidAppID=(6000003)

Invalid AppID.

Use case: Used for error return of failure due to invalid AppID.

CommonModuleTriggerSDKFrequencyLimit

CommonModuleTriggerSDKFrequencyLimit
CommonModuleTriggerSDKFrequencyLimit=(6000004)

Trigger SDK internal frequency limit.

CommonModuleTriggerServerFrequencyLimit

CommonModuleTriggerServerFrequencyLimit
CommonModuleTriggerServerFrequencyLimit=(600005)

Trigger background service frequency limit.

CommonModuleSwitchServerError

CommonModuleSwitchServerError
CommonModuleSwitchServerError=(6000006)

The Switch server reported an error.

CommonModuleIMServerError

CommonModuleIMServerError
CommonModuleIMServerError=(6000007)

ZIM service internal error.

CommonModuleIMDatabaseError

CommonModuleIMDatabaseError
CommonModuleIMDatabaseError=(6000008)

ZIM internal database error.

CommonModuleIMServerDisconnect

CommonModuleIMServerDisconnect
CommonModuleIMServerDisconnect=(6000009)

Disconnected while sending request.

CommonModuleUploadLogError

CommonModuleUploadLogError
CommonModuleUploadLogError=(6000010)

Failed to upload log.

NetworkModuleCommonError

NetworkModuleCommonError
NetworkModuleCommonError=(6000101)

Login failed.

NetworkModuleServerError

NetworkModuleServerError
NetworkModuleServerError=(6000102)

Login failed due to internal reasons.

NetworkModuleTokenInvalid

NetworkModuleTokenInvalid
NetworkModuleTokenInvalid=(6000103)

Token is invalid.

NetworkModuleNetworkError

NetworkModuleNetworkError
NetworkModuleNetworkError=(6000104)

Network error.

NetworkModuleTokenExpired

NetworkModuleTokenExpired
NetworkModuleTokenExpired=(6000106)

Token expired.

NetworkModuleTokenVersionError

NetworkModuleTokenVersionError
NetworkModuleTokenVersionError=(6000107)

Token version number is wrong.

NetworkModuleTokenTimeIsTooShort

NetworkModuleTokenTimeIsTooShort
NetworkModuleTokenTimeIsTooShort=(6000108)

Token duration is too short.

NetworkModuleUserHasAlreadyLogged

NetworkModuleUserHasAlreadyLogged
NetworkModuleUserHasAlreadyLogged=(6000111)

Logging in to multiple accounts on the current device.

NetworkModuleUserIsNotLogged

NetworkModuleUserIsNotLogged
NetworkModuleUserIsNotLogged=(6000121)

User is not logged.

MessageModuleCommonError

MessageModuleCommonError
MessageModuleCommonError=(6000201)

Internal error sending message.

MessageModuleServerError

MessageModuleServerError
MessageModuleServerError=(6000202)

Error sending message background service.

MessageModuleSendMessageFailed

MessageModuleSendMessageFailed
MessageModuleSendMessageFailed=(6000203)

Message sending failed.

MessageModuleTargetDoesNotExist

MessageModuleTargetDoesNotExist
MessageModuleTargetDoesNotExist=(6000204)

The message target does not exist.

MessageModuleCallError

MessageModuleCallError
MessageModuleCallError=(6000270)

MessageModuleCancelCallError

MessageModuleCancelCallError
MessageModuleCancelCallError=(6000271)

MessageModuleCallServerError

MessageModuleCallServerError
MessageModuleCallServerError=(6000272)

MessageModuleIsNotInvitor

MessageModuleIsNotInvitor
MessageModuleIsNotInvitor=(6000273)

MessageModuleIsNotInvitee

MessageModuleIsNotInvitee
MessageModuleIsNotInvitee=(6000274)

MessageModuleCallAlreadyExists

MessageModuleCallAlreadyExists
MessageModuleCallAlreadyExists=(6000275)

MessageModuleCallDoesNotExist

MessageModuleCallDoesNotExist
MessageModuleCallDoesNotExist=(6000276)

RoomModuleCommonError

RoomModuleCommonError
RoomModuleCommonError=(6000301)

RoomModuleServerError

RoomModuleServerError
RoomModuleServerError=(6000302)

RoomModuleCreateRoomError

RoomModuleCreateRoomError
RoomModuleCreateRoomError=(6000303)

RoomModuleJoinRoomError

RoomModuleJoinRoomError
RoomModuleJoinRoomError=(6000304)

RoomModuleLeaveRoomError

RoomModuleLeaveRoomError
RoomModuleLeaveRoomError=(6000306)

RoomModuleUserIsNotInTheRoom

RoomModuleUserIsNotInTheRoom
RoomModuleUserIsNotInTheRoom=(6000321)

RoomModuleTheRoomDoesNotExist

RoomModuleTheRoomDoesNotExist
RoomModuleTheRoomDoesNotExist=(6000322)

RoomModuleTheRoomAlreadyExists

RoomModuleTheRoomAlreadyExists
RoomModuleTheRoomAlreadyExists=(6000323)

RoomModuleTheNumberOfExistingRoomsHasReachedLimit

RoomModuleTheNumberOfExistingRoomsHasReachedLimit
RoomModuleTheNumberOfExistingRoomsHasReachedLimit=(6000324)

RoomModuleTheNumberOfJoinedRoomsHasReachedLimit

RoomModuleTheNumberOfJoinedRoomsHasReachedLimit
RoomModuleTheNumberOfJoinedRoomsHasReachedLimit=(6000325)

RoomModuleRoomAttributesCommonError

RoomModuleRoomAttributesCommonError
RoomModuleRoomAttributesCommonError=(6000330)

RoomModuleRoomAttributesOperationFailedCompletely

RoomModuleRoomAttributesOperationFailedCompletely
RoomModuleRoomAttributesOperationFailedCompletely=(6000331)

RoomModuleRoomAttributesOperationFailedPartly

RoomModuleRoomAttributesOperationFailedPartly
RoomModuleRoomAttributesOperationFailedPartly=(6000332)

RoomModuleRoomAttributesQueryFailed

RoomModuleRoomAttributesQueryFailed
RoomModuleRoomAttributesQueryFailed=(6000333)

RoomModuleTheNumberOfRoomAttributesExceedsLimit

RoomModuleTheNumberOfRoomAttributesExceedsLimit
RoomModuleTheNumberOfRoomAttributesExceedsLimit=(6000334)

RoomModuleTheLengthOfRoomAttributeKeyExceedsLimit

RoomModuleTheLengthOfRoomAttributeKeyExceedsLimit
RoomModuleTheLengthOfRoomAttributeKeyExceedsLimit=(6000335)

RoomModuleTheLengthOfRoomAttributeValueExceedsLimit

RoomModuleTheLengthOfRoomAttributeValueExceedsLimit
RoomModuleTheLengthOfRoomAttributeValueExceedsLimit=(6000336)

RoomModuleTheTotalLengthOfRoomAttributesValueExceedsLimit

RoomModuleTheTotalLengthOfRoomAttributesValueExceedsLimit
RoomModuleTheTotalLengthOfRoomAttributesValueExceedsLimit=(6000337)

ZPNSModulePushIDInvalid

ZPNSModulePushIDInvalid
ZPNSModulePushIDInvalid=(6000401)

GroupModuleCommonError

GroupModuleCommonError
GroupModuleCommonError=(6000501)

GroupModuleServerError

GroupModuleServerError
GroupModuleServerError=(6000502)

GroupModuleCreateGroupError

GroupModuleCreateGroupError
GroupModuleCreateGroupError=(6000503)

GroupModuleDismissGroupError

GroupModuleDismissGroupError
GroupModuleDismissGroupError=(6000504)

GroupModuleJoinGroupError

GroupModuleJoinGroupError
GroupModuleJoinGroupError=(6000505)

GroupModuleLeaveGroupError

GroupModuleLeaveGroupError
GroupModuleLeaveGroupError=(6000506)

GroupModuleKickoutGroupMemberError

GroupModuleKickoutGroupMemberError
GroupModuleKickoutGroupMemberError=(6000507)

GroupModuleInviteUserIntoGroupError

GroupModuleInviteUserIntoGroupError
GroupModuleInviteUserIntoGroupError=(6000508)

GroupModuleTransferOwnerError

GroupModuleTransferOwnerError
GroupModuleTransferOwnerError=(6000509)

GroupModuleUpdateGroupInfoError

GroupModuleUpdateGroupInfoError
GroupModuleUpdateGroupInfoError=(6000510)

GroupModuleQueryGroupInfoError

GroupModuleQueryGroupInfoError
GroupModuleQueryGroupInfoError=(6000511)

GroupModuleGroupAttributesOperationFailed

GroupModuleGroupAttributesOperationFailed
GroupModuleGroupAttributesOperationFailed=(6000512)

GroupModuleGroupAttributesQueryFailed

GroupModuleGroupAttributesQueryFailed
GroupModuleGroupAttributesQueryFailed=(6000513)

GroupModuleUpdateGroupMemberInfoError

GroupModuleUpdateGroupMemberInfoError
GroupModuleUpdateGroupMemberInfoError=(6000514)

GroupModuleQueryGroupMemberInfoError

GroupModuleQueryGroupMemberInfoError
GroupModuleQueryGroupMemberInfoError=(6000515)

GroupModuleQueryGroupListError

GroupModuleQueryGroupListError
GroupModuleQueryGroupListError=(6000516)

GroupModuleQueryGroupMemberListError

GroupModuleQueryGroupMemberListError
GroupModuleQueryGroupMemberListError=(6000517)

GroupModuleUserIsNotInTheGroup

GroupModuleUserIsNotInTheGroup
GroupModuleUserIsNotInTheGroup=(6000521)

GroupModuleMemberIsAlreadyInTheGroup

GroupModuleMemberIsAlreadyInTheGroup
GroupModuleMemberIsAlreadyInTheGroup=(6000522)

GroupModuleGroupDoesNotExist

GroupModuleGroupDoesNotExist
GroupModuleGroupDoesNotExist=(6000523)

GroupModuleGroupAlreadyExists

GroupModuleGroupAlreadyExists
GroupModuleGroupAlreadyExists=(6000524)

GroupModuleGroupMemberHasReachedLimit

GroupModuleGroupMemberHasReachedLimit
GroupModuleGroupMemberHasReachedLimit=(6000525)

GroupModuleGroupAttributeDoesNotExist

GroupModuleGroupAttributeDoesNotExist
GroupModuleGroupAttributeDoesNotExist=(6000526)

GroupModuleTheNumberOfGroupAttributesExceedsLimit

GroupModuleTheNumberOfGroupAttributesExceedsLimit
GroupModuleTheNumberOfGroupAttributesExceedsLimit=(6000531)

GroupModuleTheLengthOfGroupAttributeKeyExceedsLimit

GroupModuleTheLengthOfGroupAttributeKeyExceedsLimit
GroupModuleTheLengthOfGroupAttributeKeyExceedsLimit=(6000532)

GroupModuleTheLengthOfGroupAttributeValueExceedsLimit

GroupModuleTheLengthOfGroupAttributeValueExceedsLimit
GroupModuleTheLengthOfGroupAttributeValueExceedsLimit=(6000533)

GroupModuleTheTotalLengthOfGroupAttributeValuesExceedsLimit

GroupModuleTheTotalLengthOfGroupAttributeValuesExceedsLimit
GroupModuleTheTotalLengthOfGroupAttributeValuesExceedsLimit=(6000534)

GroupModuleNoCorrespondingOperationAuthority

GroupModuleNoCorrespondingOperationAuthority
GroupModuleNoCorrespondingOperationAuthority=(6000541)

GroupModuleGroupDatabaseError

GroupModuleGroupDatabaseError
GroupModuleGroupDatabaseError=(6000542)

ConversationModuleCommonError

ConversationModuleCommonError
ConversationModuleCommonError=(6000601)

ConversationModuleServerError

ConversationModuleServerError
ConversationModuleServerError=(6000602)

ConversationModuleConversationDoesNotExist

ConversationModuleConversationDoesNotExist
ConversationModuleConversationDoesNotExist=(6000603)

MessageModuleFileNotExist

MessageModuleFileNotExist
MessageModuleFileNotExist=(6000211)

MessageModuleFileServerError

MessageModuleFileServerError
MessageModuleFileServerError=(6000212)

MessageModuleFileTypeUnsupported

MessageModuleFileTypeUnsupported
MessageModuleFileTypeUnsupported=(6000213)

MessageModuleFileSizeInvalid

MessageModuleFileSizeInvalid
MessageModuleFileSizeInvalid=(6000214)

MessageModuleFileDurationInvalid

MessageModuleFileDurationInvalid
MessageModuleFileDurationInvalid=(6000215)

MessageModuleAuditRejected

MessageModuleAuditRejected
MessageModuleAuditRejected=(6000221)

MessageModuleAuditFailed

MessageModuleAuditFailed
MessageModuleAuditFailed=(6000222)

CommonModuleUserInfoQueriedLimit

CommonModuleUserInfoQueriedLimit
CommonModuleUserInfoQueriedLimit=(6000012)

CommonModuleUnsupportedRequest

CommonModuleUnsupportedRequest
CommonModuleUnsupportedRequest=(6000013)

RoomModuleRoomMemberAttributesCommonError

RoomModuleRoomMemberAttributesCommonError
RoomModuleRoomMemberAttributesCommonError=(6000350)

RoomModuleTheTotalLengthOfRoomMemberAttributesExceedsLimit

RoomModuleTheTotalLengthOfRoomMemberAttributesExceedsLimit
RoomModuleTheTotalLengthOfRoomMemberAttributesExceedsLimit=(6000351)

RoomModuleTheLengthOfRoomMemberAttributesKeyExceedsLimit

RoomModuleTheLengthOfRoomMemberAttributesKeyExceedsLimit
RoomModuleTheLengthOfRoomMemberAttributesKeyExceedsLimit=(6000352)

RoomModuleTheLengthOfRoomMemberAttributesValueExceedsLimit

RoomModuleTheLengthOfRoomMemberAttributesValueExceedsLimit
RoomModuleTheLengthOfRoomMemberAttributesValueExceedsLimit=(6000353)

RoomModuleTheMemberNumberOfRoomMemberAttributesExceedsLimit

RoomModuleTheMemberNumberOfRoomMemberAttributesExceedsLimit
RoomModuleTheMemberNumberOfRoomMemberAttributesExceedsLimit=(6000357)

MessageModuleReceiptReadError

MessageModuleReceiptReadError
MessageModuleReceiptReadError=(6000277)

CommonModuleUserIsNotExist

CommonModuleUserIsNotExist
CommonModuleUserIsNotExist=(6000011)

MessageModuleMessageExceedsRevokeTime

MessageModuleMessageExceedsRevokeTime
MessageModuleMessageExceedsRevokeTime=(6000278)

MessageModuleMessageHasBeenRevoked

MessageModuleMessageHasBeenRevoked
MessageModuleMessageHasBeenRevoked=(6000279)

RoomModuleUserIsAlreadyInTheRoom

RoomModuleUserIsAlreadyInTheRoom
RoomModuleUserIsAlreadyInTheRoom=(6000320)

NetworkModuleRequestTimeout

NetworkModuleRequestTimeout
NetworkModuleRequestTimeout=(6000105)

MessageModuleFilePermissionDenied

MessageModuleFilePermissionDenied
MessageModuleFilePermissionDenied=(6000216)

MessageModuleFileDownloadFailed

MessageModuleFileDownloadFailed
MessageModuleFileDownloadFailed=(6000217)

MessageModuleFileDownloadLimit

MessageModuleFileDownloadLimit
MessageModuleFileDownloadLimit=(6000218)

MessageModuleFileDownloadUrlNotFound

MessageModuleFileDownloadUrlNotFound
MessageModuleFileDownloadUrlNotFound=(6000219)

MessageModuleFileDownloadHttpRequestServerError

MessageModuleFileDownloadHttpRequestServerError
MessageModuleFileDownloadHttpRequestServerError=(6000220)

CommonModuleExceedDAULimit

CommonModuleExceedDAULimit
CommonModuleExceedDAULimit=(6000015)

CommonModuleExceedMAULimit

CommonModuleExceedMAULimit
CommonModuleExceedMAULimit=(6000016)

RoomModuleTheRoomIsConnecting

RoomModuleTheRoomIsConnecting
RoomModuleTheRoomIsConnecting=(6000326)

Please wait for the return of the room connection result from onRoomStateChanged before attempting to repeatedly createRoom, joinRoom, enterRoom, or perform operations on a room that is currently connecting.

MessageModuleMessageReactionTypeExisted

MessageModuleMessageReactionTypeExisted
MessageModuleMessageReactionTypeExisted=(6000280)

MessageModuleCallInviteUserDoesNotExist

MessageModuleCallInviteUserDoesNotExist
MessageModuleCallInviteUserDoesNotExist=(6000281)

MessageModuleMessageReceiptLimit

MessageModuleMessageReceiptLimit
MessageModuleMessageReceiptLimit=(6000282)

Call the sendMessageReceiptsRead API to mark more than 10 messages as read at once. Please reduce the number of incoming messages to 10 or less.

MessageModuleUserAlreadyInTheCall

MessageModuleUserAlreadyInTheCall
MessageModuleUserAlreadyInTheCall=(6000283)

The device that invokes the callJoin interface is in advanced mode, calling and acting as the main device. No need to handle.

GroupModuleGroupWithDismissed

GroupModuleGroupWithDismissed
GroupModuleGroupWithDismissed=(6000527)

Please use a different ID to create a group as the one you are using has already been destroyed.

MessageModuleTheCallIsNotAdvancedModeError

MessageModuleTheCallIsNotAdvancedModeError
MessageModuleTheCallIsNotAdvancedModeError=(6000284)

When calling advanced mode interfaces such as callJoin, callQuit, callEnd, callingInvite, and passing a regular mode call ID, please confirm the callID and its mode.

zim_error_code_network_module_user_id_error

zim_error_code_network_module_user_id_error
zim_error_code_network_module_user_id_error=(6000124)

zim_error_code_message_module_sender_in_blacklist

zim_error_code_message_module_sender_in_blacklist
zim_error_code_message_module_sender_in_blacklist=(6000284)

zim_error_code_friend_module_already_add_to_blacklist

zim_error_code_friend_module_already_add_to_blacklist
zim_error_code_friend_module_already_add_to_blacklist=(6000804 )

zim_error_code_friend_module_cannot_add_self_to_blacklist

zim_error_code_friend_module_cannot_add_self_to_blacklist
zim_error_code_friend_module_cannot_add_self_to_blacklist=(6000805 )

zim_error_code_friend_module_already_delete_from_blacklist

zim_error_code_friend_module_already_delete_from_blacklist
zim_error_code_friend_module_already_delete_from_blacklist=(6000806)

zim_error_code_friend_module_user_not_in_blacklist

zim_error_code_friend_module_user_not_in_blacklist
zim_error_code_friend_module_user_not_in_blacklist=(6000807)

zim_error_code_friend_module_blacklist_list_quantity_limit

zim_error_code_friend_module_blacklist_list_quantity_limit
zim_error_code_friend_module_blacklist_list_quantity_limit=(6000808)

zim_error_code_friend_module_add_blacklist_fail

zim_error_code_friend_module_add_blacklist_fail
zim_error_code_friend_module_add_blacklist_fail=(6000815 )

zim_error_code_friend_module_del_blacklist_fail

zim_error_code_friend_module_del_blacklist_fail
zim_error_code_friend_module_del_blacklist_fail=(6000816)

zim_error_code_room_module_room_member_query_failed_completely

zim_error_code_room_module_room_member_query_failed_completely
zim_error_code_room_module_room_member_query_failed_completely=(6000311)

Failed to batch query all room members

ZIMFriendApplicationState

Friend application state.

Declared in ZIMDefines.cs

Properties

Waiting

Waiting
Waiting=(1)

Awaiting response.

Accepted

Accepted
Accepted=(2)

Accepted.

Rejected

Rejected
Rejected=(3)

Rejected.

Expired

Expired
Expired=(4)

Expired.

Disabled

Disabled
Disabled=(5)

Disabled

ZIMFriendApplicationType

Friend application type.

Declared in ZIMDefines.cs

Properties

None

None
None=(0)

Friend application type none.

Received

Received
Received=(1)

Applications received.

Sent

Sent
Sent=(2)

Application sent.

Both

Both
Both=(3)

Application initiated by both parties.

ZIMFriendDeleteType

Delete friend type.

Declared in ZIMDefines.cs

Properties

Both

Both
Both=(0)

Delete in both directions.

Single

Single
Single=(1)

One-way deletion.

ZIMFriendRelationCheckType

Check the friend relationship type.

Declared in ZIMDefines.cs

Properties

Both

Both
Both=(0)

Two-way inspection.

Single

Single
Single=(1)

One-way inspection.

ZIMGeofencingType

Geofencing type.

  • Use cases: For example, if the specified geofenced area is Europe, the region where the App user resides is not distinguished, and the actual region accessed by the SDK is Europe.

Declared in ZIMDefines.cs

Properties

None

None
None=(0)

The default type.

Include

Include
Include=(1)

Federated mode.

Exclude

Exclude
Exclude=(2)

Exclusion mode.

ZIMGroupAttributesUpdateAction

Group attributes update action.

Details

Group attributes update action.

Declared in ZIMDefines.cs

Properties

Set

Set
Set=(0)

Set action.

Delete

Delete
Delete=(1)

Delete action.

ZIMGroupEnterType

Group enter type.

Details

Group enter type.

Declared in ZIMDefines.cs

Properties

Unknown

Unknown
Unknown=(0)

Unknown.

Created

Created
Created=(1)

Join when creating a group.

JoinApply

JoinApply
JoinApply=(2)

Join application to the group.

Joined

Joined
Joined=(3)

Join the group.

Invited

Invited
Invited=(4)

Invite to the group.

InviteApply

InviteApply
InviteApply=(5)

Invite application to the group.

ZIMGroupEvent

Group events.

Details

Group events.

Declared in ZIMDefines.cs

Properties

None

None
None=(0)

None.

Created

Created
Created=(1)

Create groups.

Dismissed

Dismissed
Dismissed=(2)

Disband the group.

Joined

Joined
Joined=(3)

Join the group.

Invited

Invited
Invited=(4)

Invite to the group.

Left

Left
Left=(5)

Leave the group.

KickedOut

KickedOut
KickedOut=(6)

Kick out of the group.

ZIMGroupMemberEvent

Group member events.

Details

Group member events.

Declared in ZIMDefines.cs

Properties

None

None
None=(0)

None.

Joined

Joined
Joined=(1)

Joined.

Left

Left
Left=(2)

left.

KickedOut

KickedOut
KickedOut=(4)

kicked_out

Invited

Invited
Invited=(5)

invited.

ZIMGroupMemberState

group membership status.

Details

group membership status.

Declared in ZIMDefines.cs

Properties

Quit

Quit
Quit=(0)

quit.

Enter

Enter
Enter=(1)

enter.

ZIMGroupMessageNotificationStatus

Enumeration of group notification status.

Details

Group notification status.

  • Use cases: You can determine the notification status of a group by modifying enumeration.

Declared in ZIMDefines.cs

Properties

Notify

Notify
Notify=(1)

Disturb

Disturb
Disturb=(2)

ZIMGroupState

group status.

Details

group status.

Declared in ZIMDefines.cs

Properties

Quit

Quit
Quit=(0)

quit.

Enter

Enter
Enter=(1)

enter.

ZIMMediaFileType

Media file type

Details

he types of media files that are allowed to be downloaded include original images, large images, thumbnails, general files, audio files, video files and their first frame images.

Declared in ZIMDefines.cs

Properties

OriginalFile

OriginalFile
OriginalFile=(1)

Original file type, suitable for original images, audio files, and video files. After calling [DownloadMediaFile], the SDK will update the fileLocalPath property in ZIMFileMessage.

LargeImage

LargeImage
LargeImage=(2)

Large image type. After calling [DownloadMediaFile], the SDK will update the largeImageLocalPath property in [ZIMImageMessage].

Thumbnail

Thumbnail
Thumbnail=(3)

Image thumbnail type. After calling [DownloadMediaFile], the SDK will update the thumbnailLocalPath property in [ZIMImageMessage].

VideoFirstFrame

VideoFirstFrame
VideoFirstFrame=(4)

The type of the first frame of the video. After calling [DownloadMediaFile], the SDK will update the videoFirstFrameLocalPath property in [ZIMVideoMessage].

ZIMMessageDirection

the direction of the message.

Details

Describes whether the current message was sent or received.

Declared in ZIMDefines.cs

Properties

Send

Send
Send=(0)

Message has been sent.

Receive

Receive
Receive=(1)

Message accepted.

ZIMMessageOrder

Message order.

Details

Used to represent the order of the message list.

Declared in ZIMDefines.cs

Properties

DESCENDING

DESCENDING
DESCENDING=(0)

Represents message list in descending order (message list order is from new to old).

ASCENDING

ASCENDING
ASCENDING=(1)

Represents message list in ascending order (message list order is from old to new).

ZIMMessagePriority

The priority of the message.

Details

Identifies the priority of a message.

  • Use cases: It can be used to set the priority when a message is sent. The higher the priority, the higher the reliability. Low priority may be discarded due to weak network.

Declared in ZIMDefines.cs

Properties

Low

Low
Low=(1)

Low priority.

  • Use cases: Generally used to send unimportant messages such as barrage message in a room.

Medium

Medium
Medium=(2)

Medium priority.

  • Use cases: Generally used to send regular chat messages.

High

High
High=(3)

High priority.

  • Use cases: Generally used to send important information such as gifts and rewards in a room.

ZIMMessageReceiptStatus

Details

The status of the receipt

Declared in ZIMDefines.cs

Properties

None

None
None=(0)

Not a receipt.

Processing

Processing
Processing=(1)

Receipt in progress.

Done

Done
Done=(2)

Receipt completed.

Expired

Expired
Expired=(3)

Receipt has expired.

Failed

Failed
Failed=(4)

Receipt failed.

ZIMMessageRevokeStatus

Message revoke status

Details

Identifies the status of current revoke message.

Declared in ZIMDefines.cs

Properties

Unknown

Unknown
Unknown=(-1)

Unknown status.

SelfRevoke

SelfRevoke
SelfRevoke=(0)

Self revoke.

SystemRevoke

SystemRevoke
SystemRevoke=(1)

System revoke.

ServiceAPIRevoke

ServiceAPIRevoke
ServiceAPIRevoke=(2)

Service API revoke.

GroupAdminRevoke

GroupAdminRevoke
GroupAdminRevoke=(3)

Group admin revoke.

GroupOwnerRevoke

GroupOwnerRevoke
GroupOwnerRevoke=(4)

group owner revoke.

AUDIT_REJECT_REVOKE

AUDIT_REJECT_REVOKE
AUDIT_REJECT_REVOKE=(6)

Revoked for audit reject.

ZIMMessageSentStatus

The status of the message being sent.

Details

Describes the condition of the currently sent message.

Declared in ZIMDefines.cs

Properties

Sending

Sending
Sending=(0)

The message is being sent.

Success

Success
Success=(1)

Message sent successfully.

Failed

Failed
Failed=(2)

Message sending failed.

ZIMMessageType

The type of the message.

Details

Identifies the type of current message.

  • Use cases: It can be used to determine what type of message this message is.

Declared in ZIMDefines.cs

Properties

Text

Text
Text=(1)

Normal text message.

  • Use cases: Can be used to deliver ordinary text messages.

Command

Command
Command=(2)

Custom binary message.

  • Use cases: Can be used to transfer custom binary messages. This message type does not support offline messages and local storage.

Unknown

Unknown
Unknown=(0)

Unknown message.

  • Use cases: A message of an unknown type is received, indicating that the sender may have sent a message type that the user does not support, and the user needs to be advised to update the version.

Barrage

Barrage
Barrage=(20)

Barrage message.

  • Use cases: Can be used for the barrage sent by the live room. This message type does not support offline messages and local storage.

Image

Image
Image=(11)

Image message.

  • Use cases: Can be used to send image messages, only ".jpg", ".jpeg", ".png", ".bmp", ".gif", ".tiff" image types are supported. After sending the image, the server will generate a large image and a thumbnail of the original image.

File

File
File=(12)

File message.

  • Use cases: For sending file messages, no file type restrictions.

Audio

Audio
Audio=(13)

Audio message.

  • Use cases: For sending audio messages, only ".mp3" audio type is supported.

Video

Video
Video=(14)

Video message.

  • Use cases: For sending video messages, only ".mp4", ".mov" video types are supported. After sending the video message, the server will generate the first frame of the video file.

System

System
System=(30)

Systemmessage.

  • Use cases: It is often used for local messages that need to be customized in the business layer, and is usually used to insert local message interfaces.

Revoke

Revoke
Revoke=(31)

Reovked message.

Combine

Combine
Combine=(100)

Combined message.

Custom

Custom
Custom=(200)

Custom message.

Tips

Tips
Tips=(32)

Tips message.

Multiple

Multiple
Multiple=(10)

Multiple messages can be used to send multiple messages of text, rich media files, and custom messages.

ZIMRevokeType

The type of the revoke message.

Details

Identifies the type of current revoke message.

  • Use cases: It can be used to determine what type of revoke message this message is.

Declared in ZIMDefines.cs

Properties

TwoWay

TwoWay
TwoWay=(1)

two way revoke.

OneWay

OneWay
OneWay=(2)

one way revoke.

ZIMRoomAttributesUpdateAction

Room attributes update action.

Details

Room attributes update action.

Declared in ZIMDefines.cs

Properties

Set

Set
Set=(0)

Set action.

Delete

Delete
Delete=(1)

Delete action.

ZIMRoomEvent

The event that caused the room connection status to change.

Details

The reason for the change of the connection state.

  • Use cases: It can be used to determine whether the login/logout is successful, and to handle abnormal situations such as network disconnection.
  • Caution: Please use it with the connection state parameter.

Declared in ZIMDefines.cs

Properties

Success

Success
Success=(0)

Success.

NetworkInterrupted

NetworkInterrupted
NetworkInterrupted=(1)

The network in the room is temporarily interrupted.

NetworkDisconnected

NetworkDisconnected
NetworkDisconnected=(2)

The network in the room is disconnected.

RoomNotExist

RoomNotExist
RoomNotExist=(3)

The room not exist.

ActiveCreate

ActiveCreate
ActiveCreate=(4)

The user actively creates a room.

CreateFailed

CreateFailed
CreateFailed=(5)

Failed to create room.

ActiveEnter

ActiveEnter
ActiveEnter=(6)

The user starts to enter the room.

EnterFailed

EnterFailed
EnterFailed=(7)

user failed to enter the room.

KickedOut

KickedOut
KickedOut=(8)

user was kicked out of the room.

ConnectTimeout

ConnectTimeout
ConnectTimeout=(9)

connect timeout.

ZIMRoomState

Details

Used to indicate the user's connection status to the room.

  • Caution: Please use with ZIMRoomEvent parameter.

Declared in ZIMDefines.cs

Properties

Disconnected

Disconnected
Disconnected=(0)

Indicates that the connection to the room is interrupted, and the [CreateRoom], [JoinRoom], and [EnterRoom] fails. If the network is disconnected for a long time, the heartbeat of the room times out, the background notifies the user that he has been kicked out of the room, or the logout will throw this status.

Connecting

Connecting
Connecting=(1)

connecting indicates that the connection between a room and a room is in the connecting state. When the create, join, or enter room connection is not returned, this state is thrown when the network is disconnected.

Connected

Connected
Connected=(2)

connected indicates that the device is properly connected to the room. If create, join, or enter room succeeds, the state will be thrown if the network is disconnected and the room heartbeat does not time out.

ZIMUserOnlineStatus

User online status.

Details

User online status.

Declared in ZIMDefines.cs

Properties

ZIMUserOnlineStatusOnline

ZIMUserOnlineStatusOnline
ZIMUserOnlineStatusOnline=(0)

Online. The user is in this state when the user is logged in and the network status is good.

ZIMUserOnlineStatusOffline

ZIMUserOnlineStatusOffline
ZIMUserOnlineStatusOffline=(1)

Offline. The user does not call logout to actively logout because the network is disconnected, the app is killed, the background is withdrawn, and the screen is locked. The user will be in this state after the long background link is disconnected.

ZIMUserOnlineStatusLogout

ZIMUserOnlineStatusLogout
ZIMUserOnlineStatusLogout=(2)

Log out. User active logout will be in this state.

ZIMUserOnlineStatusUnknown

ZIMUserOnlineStatusUnknown
ZIMUserOnlineStatusUnknown=(99)

Unknown status. Guaranteed enumeration.

ZIMUserRelationType

Friend relationship type.

Declared in ZIMDefines.cs

Properties

SingleNo

SingleNo
SingleNo=(1)

There is no B in A's friend list, but it is impossible to determine whether A is in B's friend list.

SingleHave

SingleHave
SingleHave=(2)

A has B in its friend list, but it cannot be determined whether B has A in its friend list.

BothAllNo

BothAllNo
BothAllNo=(3)

There is no B in A's friend list, and there is no A in B's friend list.

BothSelfHave

BothSelfHave
BothSelfHave=(4)

A has B in its friend list, but B does not have A in its friend list.

BothOtherHave

BothOtherHave
BothOtherHave=(5)

A does not have B in his friend list, but B has A in his friend list.

BothAllHave

BothAllHave
BothAllHave=(6)

A's friend list contains B, and B's friend list also contains A.

Previous

Struct