FMLiveSwitchNetworkInfo Class Reference

Network information. More...

Instance Methods

(void) - deserializePropertiesWithKey:valueJson:
 Deserializes the properties. More...
 
(instancetype) - init
 
(NSMutableArray *) - ipAddresses
 Gets the IP addresses. More...
 
(NSMutableArray *) - ports
 Gets the ports. More...
 
(void) - serializePropertiesWithJsonObject:
 Serializes the properties. More...
 
(void) - setIPAddresses:
 Sets the IP addresses. More...
 
(void) - setPorts:
 Sets the ports. More...
 
(NSString *) - toJson
 Serializes this instance to Json. More...
 

Class Methods

(FMLiveSwitchNetworkInfo *) + fromJsonWithNetworkInfoJson:
 Deserializes Json to a GatewayInfo. More...
 
(FMLiveSwitchNetworkInfo *) + networkInfo
 
(NSString *) + toJsonWithNetworkInfo:
 Serializes an instance to Json. More...
 

Detailed Description

Network information.

Method Documentation

◆ deserializePropertiesWithKey:valueJson:

- (void) deserializePropertiesWithKey: (NSString *)  key
valueJson: (NSString *)  valueJson 

Deserializes the properties.

Parameters
keyThe key.
valueJsonThe value in JSON format.

Implemented in FMLiveSwitchInternalNetworkInfo, and FMLiveSwitchExternalNetworkInfo.

◆ fromJsonWithNetworkInfoJson:

+ (FMLiveSwitchNetworkInfo*) fromJsonWithNetworkInfoJson: (NSString *)  networkInfoJson

Deserializes Json to a GatewayInfo.

Parameters
networkInfoJsonThe serialized Json.
Returns
The deserialized GatewayInfo.

Implemented in FMLiveSwitchInternalNetworkInfo, and FMLiveSwitchExternalNetworkInfo.

◆ init

- (instancetype) init

◆ ipAddresses

- (NSMutableArray*) ipAddresses

Gets the IP addresses.

◆ networkInfo

+ (FMLiveSwitchNetworkInfo*) networkInfo

◆ ports

- (NSMutableArray*) ports

Gets the ports.

◆ serializePropertiesWithJsonObject:

- (void) serializePropertiesWithJsonObject: (NSMutableDictionary< NSString *, NSString * > *)  jsonObject

Serializes the properties.

Parameters
jsonObjectThe JSON object.

Implemented in FMLiveSwitchInternalNetworkInfo, and FMLiveSwitchExternalNetworkInfo.

◆ setIPAddresses:

- (void) setIPAddresses: (NSMutableArray *)  value

Sets the IP addresses.

◆ setPorts:

- (void) setPorts: (NSMutableArray *)  value

Sets the ports.

◆ toJson

- (NSString*) toJson

Serializes this instance to Json.

◆ toJsonWithNetworkInfo:

+ (NSString*) toJsonWithNetworkInfo: (FMLiveSwitchNetworkInfo *)  networkInfo

Serializes an instance to Json.

Parameters
networkInfoThe instance to serialize.
Returns
Serialized Json.