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... | |
Network information.
Deserializes the properties.
key | The key. |
valueJson | The value in JSON format. |
Implemented in FMLiveSwitchInternalNetworkInfo, and FMLiveSwitchExternalNetworkInfo.
+ (FMLiveSwitchNetworkInfo*) fromJsonWithNetworkInfoJson: | (NSString *) | networkInfoJson |
Deserializes Json to a GatewayInfo.
networkInfoJson | The serialized Json. |
Implemented in FMLiveSwitchInternalNetworkInfo, and FMLiveSwitchExternalNetworkInfo.
- (instancetype) init |
Implemented in FMLiveSwitchInternalNetworkInfo, and FMLiveSwitchExternalNetworkInfo.
- (NSMutableArray*) ipAddresses |
Gets the IP addresses.
+ (FMLiveSwitchNetworkInfo*) networkInfo |
- (NSMutableArray*) ports |
Gets the ports.
- (void) serializePropertiesWithJsonObject: | (NSMutableDictionary< NSString *, NSString * > *) | jsonObject |
Serializes the properties.
jsonObject | The JSON object. |
Implemented in FMLiveSwitchInternalNetworkInfo, and FMLiveSwitchExternalNetworkInfo.
- (void) setIPAddresses: | (NSMutableArray *) | value |
Sets the IP addresses.
- (void) setPorts: | (NSMutableArray *) | value |
Sets the ports.
- (NSString*) toJson |
Serializes this instance to Json.
+ (NSString*) toJsonWithNetworkInfo: | (FMLiveSwitchNetworkInfo *) | networkInfo |
Serializes an instance to Json.
networkInfo | The instance to serialize. |