FMLiveSwitchStunIceRoleConflictError Class Reference

487 Role Conflict. More...

Instance Methods

(NSString *) - getDescription
 Gets the description for this FMLiveSwitchStunError. More...
 
(FMLiveSwitchStunIceControlledAttribute *) - iceControlled
 Gets the ICE-controlled attribute. More...
 
(FMLiveSwitchStunIceControllingAttribute *) - iceControlling
 Gets the ICE-controlling attribute. More...
 
(instancetype) - initWithIceControlled:iceControlling:
 Initializes a new instance of the FMLiveSwitchStunIceRoleConflictError class. More...
 
(instancetype) - initWithMessage:iceControlled:iceControlling:
 Initializes a new instance of the FMLiveSwitchStunIceRoleConflictError class. More...
 
- Instance Methods inherited from FMLiveSwitchStunError
(instancetype) - initWithCode:message:
 Initializes a new instance of the FMLiveSwitchStunError class. More...
 
(int) - stunCode
 Gets the STUN code. More...
 
(int) - stunErrorCode
 Gets the STUN code. More...
 
- Instance Methods inherited from FMLiveSwitchError
(FMLiveSwitchErrorCode) - code
 Gets the code. More...
 
(int) - codeValue
 Gets the code. More...
 
(NSString *) - description
 Returns the string representation of this error. More...
 
(FMLiveSwitchErrorCode) - errorCode
 Gets the code. More...
 
(NSException *) - exception
 Gets the exception. More...
 
(instancetype) - init
 Initializes a new instance of the FMLiveSwitchError class. More...
 
(instancetype) - initWithCode:exception:
 Initializes a new instance of the FMLiveSwitchError class. More...
 
(NSString *) - message
 Gets the message. More...
 
(void) - setCode:
 Sets the code. More...
 
(void) - setCodeValue:
 Sets the code. More...
 
(void) - setErrorCode:
 Sets the code. More...
 
(void) - setException:
 Sets the exception. More...
 
(void) - setMessage:
 Sets the message. More...
 
(NSString *) - toJson
 Serializes this instance to JSON. More...
 

Class Methods

(FMLiveSwitchStunIceRoleConflictError *) + roleConflictErrorWithIceControlled:iceControlling:
 Initializes a new instance of the FMLiveSwitchStunIceRoleConflictError class. More...
 
(FMLiveSwitchStunIceRoleConflictError *) + roleConflictErrorWithMessage:iceControlled:iceControlling:
 Initializes a new instance of the FMLiveSwitchStunIceRoleConflictError class. More...
 
- Class Methods inherited from FMLiveSwitchStunError
(FMLiveSwitchError *) + createStunErrorWithCode:message:
 Creates error for the given error code and with a given message. More...
 
(FMLiveSwitchStunError *) + errorWithCode:message:
 Initializes a new instance of the FMLiveSwitchStunError class. More...
 
- Class Methods inherited from FMLiveSwitchError
(FMLiveSwitchError *) + error
 Initializes a new instance of the FMLiveSwitchError class. More...
 
(FMLiveSwitchError *) + errorWithCode:exception:
 Initializes a new instance of the FMLiveSwitchError class. More...
 
(FMLiveSwitchError *) + fromJsonWithErrorJson:
 Deserializes an instance from JSON. More...
 
(NSString *) + toJsonWithError:
 Serializes an instance to JSON. More...
 

Detailed Description

487 Role Conflict.

The Binding request contained either the ICE-CONTROLLING or ICE-CONTROLLED attribute, indicating a role that conflicted with the server. The server ran a tie-breaker based on the tie-breaker value in the request and determined that the client needs to switch roles.

Method Documentation

◆ getDescription

- (NSString*) getDescription

Gets the description for this FMLiveSwitchStunError.

Implements FMLiveSwitchError.

◆ iceControlled

Gets the ICE-controlled attribute.

◆ iceControlling

Gets the ICE-controlling attribute.

◆ initWithIceControlled:iceControlling:

- (instancetype) initWithIceControlled: (FMLiveSwitchStunIceControlledAttribute *)  iceControlled
iceControlling: (FMLiveSwitchStunIceControllingAttribute *)  iceControlling 

Initializes a new instance of the FMLiveSwitchStunIceRoleConflictError class.

Parameters
iceControlledThe ICE-controlled attribute.
iceControllingThe ICE-controlling attribute.

◆ initWithMessage:iceControlled:iceControlling:

- (instancetype) initWithMessage: (NSString *)  message
iceControlled: (FMLiveSwitchStunIceControlledAttribute *)  iceControlled
iceControlling: (FMLiveSwitchStunIceControllingAttribute *)  iceControlling 

Initializes a new instance of the FMLiveSwitchStunIceRoleConflictError class.

Parameters
messageThe message.
iceControlledThe ICE-controlled attribute.
iceControllingThe ICE-controlling attribute.

◆ roleConflictErrorWithIceControlled:iceControlling:

+ (FMLiveSwitchStunIceRoleConflictError*) roleConflictErrorWithIceControlled: (FMLiveSwitchStunIceControlledAttribute *)  iceControlled
iceControlling: (FMLiveSwitchStunIceControllingAttribute *)  iceControlling 

Initializes a new instance of the FMLiveSwitchStunIceRoleConflictError class.

Parameters
iceControlledThe ICE-controlled attribute.
iceControllingThe ICE-controlling attribute.

◆ roleConflictErrorWithMessage:iceControlled:iceControlling:

+ (FMLiveSwitchStunIceRoleConflictError*) roleConflictErrorWithMessage: (NSString *)  message
iceControlled: (FMLiveSwitchStunIceControlledAttribute *)  iceControlled
iceControlling: (FMLiveSwitchStunIceControllingAttribute *)  iceControlling 

Initializes a new instance of the FMLiveSwitchStunIceRoleConflictError class.

Parameters
messageThe message.
iceControlledThe ICE-controlled attribute.
iceControllingThe ICE-controlling attribute.