TCHJsonAttributes Class Reference

Inherits from NSObject
Declared in TCHJsonAttributes.h

Overview

Attributes representation, can be set to Conversation, User, Participant or Message.

– initWithDictionary:

Initialize TCHJsonAttributes with NSDictionary

- (_Null_unspecified instancetype)initWithDictionary:(nonnull NSDictionary *)dictionary

Parameters

dictionary

The data to set attributes to.

Discussion

Initialize TCHJsonAttributes with NSDictionary

Declared In

TCHJsonAttributes.h

– initWithArray:

Initialize TCHJsonAttributes with NSArray

- (_Null_unspecified instancetype)initWithArray:(nonnull NSArray *)array

Parameters

array

The data to set attributes to.

Discussion

Initialize TCHJsonAttributes with NSArray

Declared In

TCHJsonAttributes.h

– initWithString:

Initialize TCHJsonAttributes with NSString

- (_Null_unspecified instancetype)initWithString:(nonnull NSString *)string

Parameters

string

The data to set attributes to.

Discussion

Initialize TCHJsonAttributes with NSString

Declared In

TCHJsonAttributes.h

– initWithNumber:

Initialize TCHJsonAttributes with NSNumber

- (_Null_unspecified instancetype)initWithNumber:(nonnull NSNumber *)number

Parameters

number

The data to set attributes to.

Discussion

Initialize TCHJsonAttributes with NSNumber

Declared In

TCHJsonAttributes.h

  isDictionary

Return true if given attributes are type of NSDictionary

@property (readonly) BOOL isDictionary

Discussion

Return true if given attributes are type of NSDictionary

Declared In

TCHJsonAttributes.h

  isArray

Return true if given attributes are type of NSArray

@property (readonly) BOOL isArray

Discussion

Return true if given attributes are type of NSArray

Declared In

TCHJsonAttributes.h

  isString

Return true if given attributes are type of NSString

@property (readonly) BOOL isString

Discussion

Return true if given attributes are type of NSString

Declared In

TCHJsonAttributes.h

  isNumber

Return true if given attributes are type of NSNumber

@property (readonly) BOOL isNumber

Discussion

Return true if given attributes are type of NSNumber

Declared In

TCHJsonAttributes.h

  isNull

Return true if given attributes are type of NSNull

@property (readonly) BOOL isNull

Discussion

Return true if given attributes are type of NSNull

Declared In

TCHJsonAttributes.h

  dictionary

Return dictionary data of attributes if type of attributes is NSDictionary otherwise returns nil

@property (readonly, nullable) NSDictionary *dictionary

Discussion

Return dictionary data of attributes if type of attributes is NSDictionary otherwise returns nil

Declared In

TCHJsonAttributes.h

  array

Return array data of attributes if type of attributes is NSArray otherwise returns nil

@property (readonly, nullable) NSArray *array

Discussion

Return array data of attributes if type of attributes is NSArray otherwise returns nil

Declared In

TCHJsonAttributes.h

  string

Return string data of attributes if type of attributes is NSString otherwise returns nil

@property (readonly, nullable) NSString *string

Discussion

Return string data of attributes if type of attributes is NSString otherwise returns nil

Declared In

TCHJsonAttributes.h

  number

Return number data of attributes if type of attributes is NSNumber otherwise returns nil

@property (readonly, nullable) NSNumber *number

Discussion

Return number data of attributes if type of attributes is NSNumber otherwise returns nil

Declared In

TCHJsonAttributes.h