SIGN UP

VIPayload

Interface that represent message payload format.

Methods

initWithTitle:type:dataArray:

- (instancetype)initWithTitle:(NSString *)title
                         type:(NSString *)type
                    dataArray:(NSArray *)dataArray

Initialize Payload with NSArray.

Parameters

  • title:

    NSString *

    Payload fragment unique title.

  • type:

    NSString *

    Arbitrary payload type.

  • dataArray:

    NSArray *

    Payload data array.

Returns

  • Return:

    instancetype

    Payload instance

initWithTitle:type:dataDictionary:

- (instancetype)initWithTitle:(NSString *)title
                         type:(NSString *)type
               dataDictionary:(NSDictionary *)dataDictionary

Initialize VIPayload with NSDictionary.

Parameters

  • title:

    NSString *

    Payload fragment unique title.

  • type:

    NSString *

    Arbitrary payload type.

  • dataDictionary:

    NSDictionary *

    Payload data dictionary.

Returns

  • Return:

    instancetype

    Payload instance

initWithTitle:type:dataString:

- (instancetype)initWithTitle:(NSString *)title
                         type:(NSString *)type
                   dataString:(NSString *)dataString

Initialize VIPayload with NSString.

Parameters

  • title:

    NSString *

    Payload fragment unique title.

  • type:

    NSString *

    Arbitrary payload type.

  • dataString:

    NSString *

    Payload data string.

Returns

  • Return:

    instancetype

    Payload instance.

Properties

data

@property (nonatomic, strong) NSObject *data

Payload data

title

@property (nonatomic, strong) NSString *title

Payload fragment unique title. Used to identifier fragment in the list of fragments associated with the message.

type

@property (nonatomic, strong) NSString *type

Arbitrary payload type.