FileMessageCreateParams

Represents a file message params.

Since

3.0.52

See also

Constructors

Link copied to clipboard
constructor()

FileMessageParams constructor.

constructor(fileUrl: String)

FileMessageParams constructor.

constructor(file: File)

FileMessageParams constructor.

Properties

Link copied to clipboard
@SerializedName(value = "appleCriticalAlertOptions")
var appleCriticalAlertOptions: AppleCriticalAlertOptions?

The apple critical alert options of the message. Defaults to null.

Link copied to clipboard
@SerializedName(value = "customType")
var customType: String?

The custom type of the message. Defaults to null.

Link copied to clipboard
@SerializedName(value = "data")
var data: String?

The data of the message. Defaults to null.

Link copied to clipboard
var file: File?

The file object of the message. Defaults to null. If fileUrl was set after, this will be reset to null.

Link copied to clipboard
@SerializedName(value = "fileName")
var fileName: String?

The file's name of the messages. Defaults to null.

Link copied to clipboard
@SerializedName(value = "fileSize")
var fileSize: Int?

The file's size of the messages. Defaults to null.

Link copied to clipboard

The file's url of the message. Defaults to null. If file was set after, this will be reset to null.

Link copied to clipboard
@SerializedName(value = "isPinnedMessage")
var isPinnedMessage: Boolean

Whether the message should be pinned to the channel. Defaults to false.

Link copied to clipboard

The mentioned user ids of the message. If it hasn't set before, it returns null. Setting this will overwrite mentionedUsers.

Link copied to clipboard

The mentioned users of the message. If it hasn't set before, it returns null Setting this will overwrite mentionedUserIds.

Link copied to clipboard
@SerializedName(value = "mentionType")
var mentionType: MentionType

The mention type of the message. Defaults to MentionType.USERS.

Link copied to clipboard

The meta arrays of the message. Defaults to null.

Link copied to clipboard
@SerializedName(value = "mimeType")
var mimeType: String?

The file's mime type of the messages. Defaults to null.

Link copied to clipboard
@SerializedName(value = "parentMessageId")
var parentMessageId: Long

The parent message id of the message. Defaults to 0.

Link copied to clipboard
@SerializedName(value = "pollId")
var pollId: Long?

The poll id of the message. Defaults to null.

Link copied to clipboard
@SerializedName(value = "pushNotificationDeliveryOption")
var pushNotificationDeliveryOption: PushNotificationDeliveryOption?

The push notification delivery option user of the message. Defaults to null.

Link copied to clipboard
@SerializedName(value = "replyToChannel")
var replyToChannel: Boolean

Whether the message should also be sent to the channel. Defaults to false. Only works when the parentMessageId is set.

Link copied to clipboard
@SerializedName(value = "thumbnailSizes")
var thumbnailSizes: List<ThumbnailSize>?

The file's thumbnail sizes of the messages. Defaults to null.

Functions

Link copied to clipboard
fun copy(fileUrl: String? = this.fileUrl, file: File? = this.file, fileName: String? = this.fileName, mimeType: String? = this.mimeType, fileSize: Int? = this.fileSize, thumbnailSizes: List<ThumbnailSize>? = this.thumbnailSizes, data: String? = this.data, customType: String? = this.customType, mentionType: MentionType = this.mentionType, mentionedUserIds: List<String>? = this.mentionedUserIds, mentionedUsers: List<User>? = this.mentionedUsers, pushNotificationDeliveryOption: PushNotificationDeliveryOption? = this.pushNotificationDeliveryOption, metaArrays: List<MessageMetaArray>? = this.metaArrays, parentMessageId: Long = this.parentMessageId, replyToChannel: Boolean = this.replyToChannel, isPinnedMessage: Boolean = this.isPinnedMessage, appleCriticalAlertOptions: AppleCriticalAlertOptions? = this.appleCriticalAlertOptions, uploadableFileInfo: UploadableFileInfo? = this.uploadableFileInfo, pollId: Long? = this.pollId): FileMessageCreateParams
Link copied to clipboard
open override fun toString(): String