MXUserListModel Class Reference

Inherits from NSObject
Declared in MXUserListModel.h

Overview

The MXUserListModel class provides interfaces for getting all users and teams related with the current user, and getting shared chats with them.

  delegate

The object that acts as delegate of the user list

@property (nonatomic, weak, nullable) id<MXUserListModelDelegate> delegate

Declared In

MXUserListModel.h

– users

Return an array containing all users

- (NSArray<MXUserItem*> *)users

Declared In

MXUserListModel.h

– teams

Return an array containing all teams

- (NSArray<MXTeamItem*> *)teams

Declared In

MXUserListModel.h

– fetchSharedChatsWithUser:completion:

Get all chats shared with a specified user.

- (void)fetchSharedChatsWithUser:(nonnull MXUserItem *)user completion:(void ( ^ __nullable ) ( NSError *__nullable errorOrNil , NSArray<MXChat*> *__nullable chats ))completion

Parameters

user

The specified user.

completion

Called this block after request finished. Get an array of MXChat object if request succeed, otherwise will get an error

Declared In

MXUserListModel.h