FMLiveSwitchWebSocketReceiveArgs Class Reference

Arguments for onReceive (FMLiveSwitchWebSocketOpenArgs). More...

Instance Methods

(NSMutableData *) - binaryMessage
 Gets the message received from the server as binary data. More...
 
(instancetype) - init
 Initializes a new instance of the FMLiveSwitchSerializable class. More...
 
(bool) - isText
 Gets whether or not the received message is text. More...
 
(FMLiveSwitchWebSocketOpenArgs *) - openArgs
 Gets the original arguments passed to the open method. More...
 
(void) - setBinaryMessage:
 Sets the message received from the server as binary data. More...
 
(void) - setOpenArgs:
 Sets the original arguments passed to the open method. More...
 
(void) - setTextMessage:
 Sets the message received from the server as text data. More...
 
(NSString *) - textMessage
 Gets the message received from the server as text data. More...
 
- Instance Methods inherited from FMLiveSwitchDynamic
(NSMutableDictionary< NSString *, id > *) - dynamicProperties
 Gets all dynamic properties on this instance. More...
 
(id- getDynamicValueWithKey:
 Gets a property value from the local cache. More...
 
(void) - setDynamicValueWithKey:value:
 Sets a property value in the local cache. More...
 
(bool) - unsetDynamicValueWithKey:
 Removes a property value from the local cache. More...
 

Class Methods

(FMLiveSwitchWebSocketReceiveArgs *) + webSocketReceiveArgs
 
- Class Methods inherited from FMLiveSwitchDynamic
(FMLiveSwitchDynamic *) + dynamic
 
- Class Methods inherited from FMLiveSwitchSerializable
(FMLiveSwitchSerializable *) + serializable
 Initializes a new instance of the FMLiveSwitchSerializable class. More...
 

Detailed Description

Method Documentation

◆ binaryMessage

- (NSMutableData*) binaryMessage

Gets the message received from the server as binary data.

◆ init

- (instancetype) init

Initializes a new instance of the FMLiveSwitchSerializable class.

Implements FMLiveSwitchDynamic.

◆ isText

- (bool) isText

Gets whether or not the received message is text.

◆ openArgs

Gets the original arguments passed to the open method.

◆ setBinaryMessage:

- (void) setBinaryMessage: (NSMutableData *)  value

Sets the message received from the server as binary data.

◆ setOpenArgs:

- (void) setOpenArgs: (FMLiveSwitchWebSocketOpenArgs *)  value

Sets the original arguments passed to the open method.

◆ setTextMessage:

- (void) setTextMessage: (NSString *)  value

Sets the message received from the server as text data.

◆ textMessage

- (NSString*) textMessage

Gets the message received from the server as text data.

◆ webSocketReceiveArgs

+ (FMLiveSwitchWebSocketReceiveArgs*) webSocketReceiveArgs