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
mentionedUserIdsby this method either.Declaration
Swift
public func setMentionedUsers(_ mentionedUsers: [User])Parameters
mentionedUsersThe list of users will be receive mention.
-
Adds user IDs for mention
Declaration
Swift
public func addMentionedUserIds(_ userIds: [String])Parameters
userIdslist of user IDs
-
Default constructor
Declaration
Swift
public override init() -
Copies this object
Declaration
Swift
public func copy(with zone: NSZone? = nil) -> AnyParameters
zoneoptional
NSZoneReturn Value
BaseMessageUpdateParamsinstance -
Encodes this object.
Declaration
Swift
public func encode(to encoder: Encoder) throwsParameters
encoderEncoderinstance
View on GitHub
Install in Dash