# Events for .NET

# OnServerStatusEvent

Event triggered when a server connects/disconnects or when an error occurs during a connection attempt.

Parameters:

  • connected – indicates whether there is a connection to the server (boolean);

  • serverName – the name of the current server (string);

  • serverPort – the port number used for connecting to the server (numeric).

# OnStateChangedEvent

Event triggered when the user's own status changes. The current status can be obtained through functions that query the current state.

# OnLoginEvent

Event triggered upon authentication or authentication error on the server.

Parameters:

  • loggedIn – indicates whether the user is authenticated on the server (boolean);

  • userId – the user's TrueConf ID (string).

# OnLogoutEvent

Event triggered upon deauthorization on the server.

# OnConferenceStartEvent

Event triggered when the conference starts.

# OnConferenceEndEvent

Event triggered upon conference completion.

# OnInviteEvent

Event triggered upon receiving an incoming call.

Parameters:

  • userIdTrueConf ID of the calling user (string);

  • userName – the name of the calling user (string).

# OnAcceptEvent

Event triggered when the called party receives the call.

Parameters:

  • userIdTrueConf ID of the called user (string);

  • userName – the name of the called user (string).

# OnRejectEvent

Event triggered when the callee rejects the call.

Parameters:

  • userIdTrueConf ID of the called user (string);

  • userName – the name of the called user (string).

# OnRejectTimeOutEvent

The event triggered when the called party does not respond within a specified time.

Parameters:

  • userIdTrueConf ID of the called user (string);

  • userName – the name of the called user (string).

# OnRecordRequestEvent

Event triggered upon receiving a request for video recording.

Parameters:

  • userID – the TrueConf ID of the user requesting the video recording (string);

  • userName – the name of the user requesting the video recording (string).

# OnChatMessageReceivedEvent

Event triggered upon receiving a text message.

Parameters:

  • fromID – the user identifier who sent the message (string);

  • fromName – the name of the user who sent the message (string);

  • text – message text (string);

  • toID – the identifier of the user to whom the message was sent (string).

# OnUserStatusUpdateEvent

Event triggered when another user's status changes.

Parameters:

  • userID - the identifier of the user whose status has changed (string);

  • status — new user status (TUserPresStatus).