Bark/Model/Message.swift
2020-05-25 16:32:42 +08:00

24 lines
539 B
Swift
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// Message.swift
// Bark
//
// Created by huangfeng on 2020/5/25.
// Copyright © 2020 Fin. All rights reserved.
//
import UIKit
import RealmSwift
import IceCream
class Message: Object {
@objc dynamic var id = NSUUID().uuidString
@objc dynamic var title:String?
@objc dynamic var body:String?
@objc dynamic var createDate:Date?
// true IceCream
@objc dynamic var isDeleted = false
}
extension Message: CKRecordConvertible {}
extension Message: CKRecordRecoverable {}