MLIMRelationInfo Class Reference

Inherits from MLIMRuntimeObject : NSObject
Declared in MLIMRelationInfo.h

Overview

A representation of a friend.

  uid

The friend userId.

@property (nonatomic, readonly) NSString *uid

Declared In

MLIMRelationInfo.h

  online

Online status of the friend. Observable.

@property (nonatomic, readonly) BOOL online

Declared In

MLIMRelationInfo.h

  type

Relation type

@property (nonatomic) MLIMRelationType type

Declared In

MLIMRelationInfo.h

  from

Friend request sender

@property (nonatomic, readonly) NSString *from

Declared In

MLIMRelationInfo.h

  to

Friend request receiver

@property (nonatomic, readonly) NSString *to

Declared In

MLIMRelationInfo.h

  recentMessage

The recent message

@property (nonatomic, strong) MLIMMessage *recentMessage

Declared In

MLIMRelationInfo.h

  attributes

custom attributes, should only be json types

@property (nullable, nonatomic, strong) NSDictionary *attributes

Declared In

MLIMRelationInfo.h

+ infoWithId:

Creates a relationInfo obejct with friend userId.

+ (instancetype)infoWithId:(NSString *)uid

Parameters

uid

The friend userId.

Return Value

A new MLIMRelationInfo object.

Declared In

MLIMRelationInfo.h

+ infoWithId:client:

Creates a relationInfo obejct with friend userId.

+ (instancetype)infoWithId:(NSString *)uid client:(nullable MLIMClient *)client

Parameters

uid

The friend userId.

client

The client to observe

Return Value

A new MLIMRelationInfo object.

Declared In

MLIMRelationInfo.h

+ infoWithDictionary:

Create a MLIMRelationInfo object using payload data

+ (instancetype)infoWithDictionary:(NSDictionary *)dictionary

Parameters

dictionary

the payload

Return Value

a MLIMRelationInfo instance

Declared In

MLIMRelationInfo.h

+ infoWithDictionary:client:

Creates a relationInfo obejct with friend userId.

+ (instancetype)infoWithDictionary:(NSDictionary *)dictionary client:(nullable MLIMClient *)client

Parameters

dictionary

The payload.

client

The client to observe

Return Value

A new MLIMRelationInfo object.

Declared In

MLIMRelationInfo.h