BaseMessageCreateParams
@objc(SBDBaseMessageCreateParams)
public class BaseMessageCreateParams : NSObject, Codable, NSCopying
Represents the base class which has parameters to create a channel.
The UserMessageCreateParams, the FileMessageCreateParams are derived from this class.
-
Message data. The default value is nil.
Since
3.0.90Declaration
Swift
@objc public var data: String? -
Customize message’s type to filter. The default value is nil.
Since
3.0.90Declaration
Swift
@objc public var customType: String? -
The push notification delivery option that determines how to deliver the push notification when sending a user or a file message. The default value is
.default.Declaration
Swift
@objc public var pushNotificationDeliveryOption: PushNotificationDeliveryOption -
Meta array with keys and values
Since
3.0.179Declaration
Swift
@objc public var metaArrays: [MessageMetaArray]? -
Mention type
Since
3.0.103Declaration
Swift
@objc public var mentionType: MentionType -
Mention to specific users with user IDs. If sends a message with this field, the message will be arrived to mentioned users.
Since
3.0.90Declaration
Swift
@objc public var mentionedUserIds: [String]? { get set } -
Mention to specific users with user objects.
Since
4.0.0Declaration
Swift
@objc public var mentionedUsers: [User]? { get set } -
Adds user IDs for mention
Declaration
Swift
@objc public func addMentionedUserIds(_ userIds: [String])Parameters
userIdslist of user IDs
-
The unique ID of a parent message. The default value is
0.Since
3.0.181Declaration
Swift
@objc public var parentMessageId: Int64 -
Determines if a threaded message is also replied to the channel. Default is
falseSince
3.0.236Declaration
Swift
@objc public var isReplyToChannel: Bool -
Push notification options for the Apple critical alert. The default value is
nil.Since
3.0.221Declaration
Swift
@objc public var appleCriticalAlertOptions: AppleCriticalAlertOptions? -
Custom payload
Declaration
Swift
@objc public var payload: [String : Any] -
Determines if the sending message is also a pinned message. Default is
false.Since
4.2.0Declaration
Swift
@objc public var isPinnedMessage: Bool -
Default constructor.
Declaration
Swift
public override init() -
Copies this object
Declaration
Swift
public func copy(with zone: NSZone? = nil) -> AnyParameters
zoneoptional
NSZoneReturn Value
BaseMessageCreateParamsinstance -
Encodes this object.
Declaration
Swift
public func encode(to encoder: Encoder) throwsParameters
encoderEncoderinstance -
Default constructor.
Declaration
Swift
public required init(from decoder: Decoder) throwsParameters
decoderDecoderinstance
View on GitHub
Install in Dash
BaseMessageCreateParams Class Reference