FMIceLinkDataChannelStats Class Reference

Inherits from FMIceLinkBaseStats : NSObject
Declared in FMIceLinkDataChannelStats.h
FMIceLinkDataChannelStats.m

Overview

Data channel stats.

– bytesReceived

Gets the number of bytes received.
- (long long)bytesReceived

Discussion

Gets the number of bytes received.

Declared In

FMIceLinkDataChannelStats.h

– bytesSent

Gets the number of bytes sent.
- (long long)bytesSent

Discussion

Gets the number of bytes sent.

Declared In

FMIceLinkDataChannelStats.h

– deserializePropertiesWithKey:valueJson:

Deserializes the properties.
- (void)deserializePropertiesWithKey:(NSString *)key valueJson:(NSString *)valueJson

Parameters

key

The key.

valueJson

The value in JSON format.

Discussion

Deserializes the properties.

Declared In

FMIceLinkDataChannelStats.h

+ fromJsonArrayWithDataChannelsJson:

Derializes an array of data channel stats from JSON.
+ (NSMutableArray *)fromJsonArrayWithDataChannelsJson:(NSString *)dataChannelsJson

Parameters

dataChannelsJson

The data channels' stats JSON. @return

Discussion

Derializes an array of data channel stats from JSON.

Declared In

FMIceLinkDataChannelStats.h

+ fromJsonWithDataChannelJson:

Derializes data channel stats from JSON.
+ (FMIceLinkDataChannelStats *)fromJsonWithDataChannelJson:(NSString *)dataChannelJson

Parameters

dataChannelJson

The data channel’s stats JSON. @return

Discussion

Derializes data channel stats from JSON.

Declared In

FMIceLinkDataChannelStats.h

– label

Gets the label.
- (NSString *)label

Discussion

Gets the label.

Declared In

FMIceLinkDataChannelStats.h

– messagesReceived

Gets the number of messages received.
- (long long)messagesReceived

Discussion

Gets the number of messages received.

Declared In

FMIceLinkDataChannelStats.h

– messagesSent

Gets the number of messages sent.
- (long long)messagesSent

Discussion

Gets the number of messages sent.

Declared In

FMIceLinkDataChannelStats.h

– ordered

Gets whether the channel is ordered.
- (bool)ordered

Discussion

Gets whether the channel is ordered.

Declared In

FMIceLinkDataChannelStats.h

– protocol

Gets the protocol.
- (NSString *)protocol

Discussion

Gets the protocol.

Declared In

FMIceLinkDataChannelStats.h

– serializePropertiesWithJsonObject:

Serializes the properties.
- (void)serializePropertiesWithJsonObject:(NSMutableDictionary *)jsonObject

Parameters

jsonObject

The JSON object.

Discussion

Serializes the properties.

Declared In

FMIceLinkDataChannelStats.h

– state

Gets the state.
- (FMIceLinkDataChannelState)state

Discussion

Gets the state.

Declared In

FMIceLinkDataChannelStats.h

– toJson

Serializes this to JSON.

@return

- (NSString *)toJson

Discussion

Serializes this to JSON.

@return

Declared In

FMIceLinkDataChannelStats.h

+ toJsonArrayWithDataChannels:

Serializes an array of data channel stats to JSON.
+ (NSString *)toJsonArrayWithDataChannels:(NSMutableArray *)dataChannels

Parameters

dataChannels

The data channels' stats. @return

Discussion

Serializes an array of data channel stats to JSON.

Declared In

FMIceLinkDataChannelStats.h

+ toJsonWithDataChannel:

Serializes data channel stats to JSON.
+ (NSString *)toJsonWithDataChannel:(FMIceLinkDataChannelStats *)dataChannel

Parameters

dataChannel

The data channel’s stats. @return

Discussion

Serializes data channel stats to JSON.

Declared In

FMIceLinkDataChannelStats.h