 import Foundation
 import SwiftyJSON
 import RealmSwift
+
+class AttachmentField: BaseModel {
+    @objc dynamic var short: Bool = false
+    @objc dynamic var title: String = ""
+    @objc dynamic var value: String = ""
+}
 
 class Attachment: BaseModel {
     var type: MessageType {

        let documents = path[0]
        return documents.appendingPathComponent("\(identifier ?? "temp").png")
    }

    override class func ignoredProperties() -> [String] {
        return ["videoThumb"]

        }

        return .textAttachment
    }

    var isFile: Bool {
        return titleLinkDownload && !titleLink.isEmpty
    }

    @objc dynamic var collapsed: Bool = false
