QNChatRepository

public class QNChatRepository

Represents a chat

  • Define wether a chat is a group or not

    • oneToOne
    • groupChat

    Declaration

    Swift

    public enum ChatType

Delegate

Properties

  • Expose chat type (1-1 or group)

    Declaration

    Swift

    public var type: ChatType { get }
  • Chat identifier (remote user for 1-1 and UUID for group chats)

    Declaration

    Swift

    public var identifier: String { get }
  • Group actions for group chats like invite a participant or expel one

    Declaration

    Swift

    public private(set) var groupChatActions: QNGroupChatActions? { get }
  • Last message received

    Declaration

    Swift

    public fileprivate(set) var lastMessage: QNChatMessage? { get set }
  • Count of unread messages

    Declaration

    Swift

    public fileprivate(set) var unreadMessagesCount: Int { get set }
  • Title of chat

    Declaration

    Swift

    public fileprivate(set) var title: String { get }
  • Chat is associated with a conference

    Declaration

    Swift

    public var isConferenceChat: Bool { get }

Api