Basic Data Types and Enumerations
Basic Data Types and Enumerations
Статусы
The list of user statuses, including the SDK instance itself, is the same across all development platforms, but the names of the constants in the enumeration may differ.
Android
In Android Studio development, the following statuses are available, provided by the PresenceStatus enumeration:
UNDEFINED(-127) — user status information is unavailableINVALID(-1) — the server does not recognize the user's statusLOGOFF(0) — the user is not connected to the serverONLINE(1) — the user is authenticated on the server and available for callsBUSY(2) — the user is in a call or conferenceMULTIHOST(5) — the user is in a conference and is the owner. Different types exist to support various kinds of conferences. You can check this with:status >= BUSY.
iOS
The following statuses are available in the iOS SDK, provided by the enumeration TCSDKUserPresStatus:
Undef(-127) — no information about the user status is availableUnknown(-1) — the server does not know the status of the userOffline(0) — the user is not connected to the serverOnline(1) — the user is authenticated on the server and available for a callBusy(2) — the user is on a call or in a conferenceBusy3(5) — the user is in a conference and is its owner. Different types exist to support various types of conferences. The check can be performed as follows:status >= Busy.
.NET
The .NET SDK provides the following statuses, available through the TUserPresStatus enumeration:
userUndef(-127) — no information about the user's status is availableuserUnknown(-1) — the server is unaware of the user's statususerOffline(0) — the user is not connected to the serveruserOnline(1) — the user is authorized on the server and available for a calluserBusy(2) — the user is on a call or in a conferenceuserBusy3(5) — the user is in a conference and is its owner. Different types exist to support various types of conferences. The check can be done like this:status >= userBusy.
