Basic Data Types and Enumerations

TrueConfAbout 2 min

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 unavailable

  • INVALID (-1) — the server does not recognize the user's status

  • LOGOFF (0) — the user is not connected to the server

  • ONLINE (1) — the user is authenticated on the server and available for calls

  • BUSY (2) — the user is in a call or conference

  • MULTIHOST (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 available

  • Unknown (-1) — the server does not know the status of the user

  • Offline (0) — the user is not connected to the server

  • Online (1) — the user is authenticated on the server and available for a call

  • Busy (2) — the user is on a call or in a conference

  • Busy3 (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 available

  • userUnknown (-1) — the server is unaware of the user's status

  • userOffline (0) — the user is not connected to the server

  • userOnline (1) — the user is authorized on the server and available for a call

  • userBusy (2) — the user is on a call or in a conference

  • userBusy3 (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.