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

– sharedChatsWithUser:

Get all chats shared with a specified user.

- (NSArray<MXChat*> *)sharedChatsWithUser:(MXUserItem *)user

Parameters

user

The specified user.

Return Value

An array containing all chats shared between the current user and the specified user.

Declared In

MXUserListModel.h