BaseMessageUpdateParams

public class BaseMessageUpdateParams: NSObject, Encodable, NSCopying

Represents the base class which has parameters to update a message.

The UserMessageUpdateParams, the FileMessageUpdateParams are derived from this class.

  • Message data. The default value is nil.

    Declaration

    Swift

    public var data: String?
  • Customize message’s type to filter. The default value is nil.

    Declaration

    Swift

    public var customType: String?
  • Mention type

    Declaration

    Swift

    public var mentionType: MentionType
  • Mention to specific users. If sends a message with this field, the message will be arrived to mentioned users.

    Declaration

    Swift

    public var mentionedUserIds: [String]?
  • Sets the mentionedUserIds by this method either.

    Declaration

    Swift

    public func setMentionedUsers(_ mentionedUsers: [User])

    Parameters

    mentionedUsers

    The list of users will be receive mention.

  • Adds user IDs for mention

    Declaration

    Swift

    public func addMentionedUserIds(_ userIds: [String])

    Parameters

    userIds

    list of user IDs

  • Default constructor

    Declaration

    Swift

    public override init()
  • Copies this object

    Declaration

    Swift

    public func copy(with zone: NSZone? = nil) -> Any

    Parameters

    zone

    optional NSZone

    Return Value

    BaseMessageUpdateParams instance

  • Encodes this object.

    Declaration

    Swift

    public func encode(to encoder: Encoder) throws

    Parameters

    encoder

    Encoder instance