Skip to main content

AttachmentType

An attachment type. There are some predefined types on backend but any type can be introduced and sent to backend.

public struct AttachmentType: RawRepresentable, Codable, Hashable, ExpressibleByStringLiteral 

Inheritance

Codable, ExpressibleByStringLiteral, Hashable, RawRepresentable

Initializers

init(rawValue:)

public init(rawValue: String) 

init(stringLiteral:)

public init(stringLiteral value: String) 

Properties

rawValue

public let rawValue: String

image

Backend specified types.

static let image 

file

static let file 

giphy

static let giphy 

video

static let video 

audio

static let audio 

linkPreview

Application custom types.

static let linkPreview 

unknown

Is used when attachment with missing type comes.

static let unknown 

Did you find this page helpful?