Class Connection
- Namespace
- Vonage.Video.Sessions.ListConnections
- Assembly
- Vonage.dll
public record Connection : IEquatable<Connection>
- Inheritance
-
Connection
- Implements
- Inherited Members
Constructors
Connection(string, State, long)
public Connection(string ConnectionId, Connection.State ConnectionState, long CreatedAt)
Parameters
ConnectionIdstringThe connection ID.
ConnectionStateConnection.StateThe state of the connection.
CreatedAtlongThe timestamp for when the connection was created, expressed in milliseconds since the Unix epoch (January 1, 1970, 00:00:00 UTC).
Properties
ConnectionId
The connection ID.
[JsonPropertyName("connectionId")]
public string ConnectionId { get; init; }
Property Value
ConnectionState
The state of the connection.
[JsonPropertyName("connectionState")]
[JsonConverter(typeof(EnumDescriptionJsonConverter<Connection.State>))]
public Connection.State ConnectionState { get; init; }
Property Value
CreatedAt
The timestamp for when the connection was created, expressed in milliseconds since the Unix epoch (January 1, 1970, 00:00:00 UTC).
[JsonPropertyName("createdAt")]
public long CreatedAt { get; init; }