BaseMessage

public class BaseMessage : AppEntity

Base message class is the parent class of different types of messages. When the list of messages is fetched the user gets messages in type BaseMessage class.

  • id

    provides the id of the message

    Declaration

    Swift

    @objc
    public var id: Int { get set }
  • provides the muid of the message

    Declaration

    Swift

    @objc
    public var muid: String { get set }
  • provides the senderUId of the message sender

    Declaration

    Swift

    @objc
    public var senderUid: String { get set }
  • provides the receiverUid of message receiver

    Declaration

    Swift

    @objc
    public var receiverUid: String { get set }
  • provides the messageType of the message

    Declaration

    Swift

    @objc
    public var messageType: CometChat.MessageType { get set }
  • provides the receiverType of the message like group or user

    Declaration

    Swift

    @objc
    public var receiverType: CometChat.ReceiverType { get set }
  • Undocumented

    Declaration

    Swift

    @objc
    public var receipts: [MessageReceipt] { get set }
  • provides the timestamp of when it was delivered to the loggedIn user

    Declaration

    Swift

    @objc
    public var deliveredToMeAt: Double { get set }
  • provides the timestamp of when it was read by the loggedIn user

    Declaration

    Swift

    @objc
    public var readByMeAt: Double { get set }
  • provides the delivery timestamp of the message

    Declaration

    Swift

    @objc
    public var deliveredAt: Double { get set }
  • provides the read timestamp of the message

    Declaration

    Swift

    @objc
    public var readAt: Double { get set }
  • provides the sent timestamp of the message

    Declaration

    Swift

    @objc
    public var sentAt: Int { get set }
  • provides the updated timestamp of the message

    Declaration

    Swift

    @objc
    public var updatedAt: Double { get set }
  • provides the status of the message

    Declaration

    Swift

    @objc
    public var status: String { get set }
  • provides the message category of the message

    Declaration

    Swift

    @objc
    public var messageCategory: CometChat.MessageCategory { get set }
  • provides the sender object of the message

    Declaration

    Swift

    @objc
    public var sender: User? { get set }
  • provides the receiver object of the message

    Declaration

    Swift

    @objc
    public var receiver: AppEntity? { get set }
  • provides the metaData of the message

    Declaration

    Swift

    @objc
    public var metaData: [String : Any]? { get set }
  • provides the editedAt timestamp of the message

    Declaration

    Swift

    @objc
    public var editedAt: Double { get set }
  • provides the name of user who edited the message

    Declaration

    Swift

    @objc
    public var editedBy: String { get set }
  • provides the deletedAt timestamp of the message

    Declaration

    Swift

    @objc
    public var deletedAt: Double { get set }
  • provides the name of user who deleted the message

    Declaration

    Swift

    @objc
    public var deletedBy: String { get set }
  • provides the conversationId of the message

    Declaration

    Swift

    @objc
    public var conversationId: String { get set }
  • Initializer for creating BaseMessage Objected

    Declaration

    Swift

    @objc
    public init(receiverUid: String, messageType: CometChat.MessageType, receiverType: CometChat.ReceiverType)