Attachment

public struct Attachment : Mappable

Message Attachement

  • id

    ID

    Declaration

    Swift

    public let id: Int
  • The name of file

    Declaration

    Swift

    public let fileName: String
  • Mime type

    Declaration

    Swift

    public let mimeType: String
  • Attachment size

    Declaration

    Swift

    public let size: String
  • Data of image, as base64

    Declaration

    Swift

    public var dataImage: Data?
  • Constructor

    Declaration

    Swift

    public init(fileName: String, mimeType: String, dataImage: Data?)
  • JSON Mapper

    Declaration

    Swift

    public init(map: Mapper) throws