Data stream stats. More...
Instance Methods | |
(long long) | - bytesReceived |
Gets the number of bytes received. More... | |
(long long) | - bytesSent |
Gets the number of bytes sent. More... | |
(FMLiveSwitchDataChannelStats *) | - channel |
Gets the first channel's stats. More... | |
(NSMutableArray *) | - channels |
Gets the channels' stats. More... | |
(FMLiveSwitchDataChannelStats *) | - dataChannel |
Gets the first channel's stats. More... | |
(NSMutableArray *) | - dataChannels |
Gets the channels' stats. More... | |
(void) | - deserializePropertiesWithKey:valueJson: |
Deserializes the properties. More... | |
(FMLiveSwitchDataChannelStats *) | - getChannelWithChannelId: |
Gets a channel by its identifier. More... | |
(FMLiveSwitchDataChannelStats *) | - getDataChannelWithDataChannelId: |
Gets a channel by its identifier. More... | |
(instancetype) | - init |
(long long) | - messagesReceived |
Gets the number of messages received. More... | |
(long long) | - messagesSent |
Gets the number of messages sent. More... | |
(void) | - serializePropertiesWithJsonObject: |
Serializes the properties. More... | |
(NSString *) | - toJson |
Serializes this to JSON. More... | |
Instance Methods inherited from FMLiveSwitchStreamStats | |
(bool) | - isHost |
Gets whether the transport's active candidate pair has a host candidate. More... | |
(bool) | - isReflexive |
Gets whether the transport's active candidate pair has a reflexive candidate. More... | |
(bool) | - isRelayed |
Gets whether the transport's active candidate pair has a relayed candidate. More... | |
(FMLiveSwitchTransportStats *) | - transport |
Gets the transport's stats. More... | |
(FMLiveSwitchStreamType) | - type |
Gets the type. More... | |
Instance Methods inherited from FMLiveSwitchBaseStats | |
(NSString *) | - id |
Gets the identifier of the object generating these stats. More... | |
(NSDate *) | - timestamp |
Gets the timestamp when these stats were generated. More... | |
Class Methods | |
(FMLiveSwitchDataStreamStats *) | + dataStreamStats |
(NSMutableArray *) | + fromJsonArrayWithDataStreamsJson: |
Derializes an array of data stream stats from JSON. More... | |
(FMLiveSwitchDataStreamStats *) | + fromJsonWithDataStreamJson: |
Derializes data stream stats from JSON. More... | |
(NSString *) | + toJsonArrayWithDataStreams: |
Serializes an array of data stream stats to JSON. More... | |
(NSString *) | + toJsonWithDataStream: |
Serializes data stream stats to JSON. More... | |
Class Methods inherited from FMLiveSwitchStreamStats | |
(FMLiveSwitchStreamStats *) | + streamStats |
Class Methods inherited from FMLiveSwitchBaseStats | |
(FMLiveSwitchBaseStats *) | + baseStats |
Data stream stats.
- (long long) bytesReceived |
Gets the number of bytes received.
- (long long) bytesSent |
Gets the number of bytes sent.
- (FMLiveSwitchDataChannelStats*) channel |
Gets the first channel's stats.
- (NSMutableArray*) channels |
Gets the channels' stats.
- (FMLiveSwitchDataChannelStats*) dataChannel |
Gets the first channel's stats.
- (NSMutableArray*) dataChannels |
Gets the channels' stats.
+ (FMLiveSwitchDataStreamStats*) dataStreamStats |
Deserializes the properties.
key | The key. |
valueJson | The value in JSON format. |
Implements FMLiveSwitchStreamStats.
+ (NSMutableArray*) fromJsonArrayWithDataStreamsJson: | (NSString *) | dataStreamsJson |
Derializes an array of data stream stats from JSON.
dataStreamsJson | The data streams' stats JSON. |
+ (FMLiveSwitchDataStreamStats*) fromJsonWithDataStreamJson: | (NSString *) | dataStreamJson |
Derializes data stream stats from JSON.
dataStreamJson | The data stream's stats JSON. |
- (FMLiveSwitchDataChannelStats*) getChannelWithChannelId: | (NSString *) | channelId |
Gets a channel by its identifier.
channelId | The channel identifier. |
- (FMLiveSwitchDataChannelStats*) getDataChannelWithDataChannelId: | (NSString *) | dataChannelId |
Gets a channel by its identifier.
dataChannelId | The channel identifier. |
- (instancetype) init |
Implements FMLiveSwitchStreamStats.
- (long long) messagesReceived |
Gets the number of messages received.
- (long long) messagesSent |
Gets the number of messages sent.
- (void) serializePropertiesWithJsonObject: | (NSMutableDictionary< NSString *, NSString * > *) | jsonObject |
Serializes the properties.
jsonObject | The JSON object. |
Implements FMLiveSwitchStreamStats.
- (NSString*) toJson |
Serializes this to JSON.
+ (NSString*) toJsonArrayWithDataStreams: | (NSMutableArray *) | dataStreams |
Serializes an array of data stream stats to JSON.
dataStreams | The data streams' stats. |
+ (NSString*) toJsonWithDataStream: | (FMLiveSwitchDataStreamStats *) | dataStream |
Serializes data stream stats to JSON.
dataStream | The data stream's stats. |