AttachmentId
An object that uniquely identifies a message attachment.
public struct AttachmentId: Hashable
Inheritance
Hashable
, RawRepresentable
Initializers
init(cid:messageId:index:)
public init(
cid: ChannelId,
messageId: MessageId,
index: Int
)
init?(rawValue:)
public init?(rawValue: String)
Properties
cid
The cid
of the channel the attachment belongs to.
public let cid: ChannelId
messageId
The id of the message the attachments belongs to.
public let messageId: MessageId
index
The position of the attachment within the message. The first attachment index is 0, then 1, etc.
public let index: Int
rawValue
public var rawValue: String