Files
POCloud-iOS/pocloud/Model/ChanValue.swift
Patrick McDonagh 909925a334 Initial Commit
2018-05-25 12:56:07 -05:00

25 lines
625 B
Swift

//
// ChanValue.swift
// pocloud
//
// Created by Patrick McDonagh on 5/24/18.
// Copyright © 2018 patrickjmcd. All rights reserved.
//
import Foundation
import RealmSwift
class ChanValue : Object {
@objc dynamic var uid : String = ""
@objc dynamic var name : String = ""
@objc dynamic var value : String = ""
@objc dynamic var timestamp : Int = 0
var parentDevice = LinkingObjects(fromType: Device.self, property: "values")
var parentChannel = LinkingObjects(fromType: Channel.self, property: "values")
override static func primaryKey() -> String? {
return "uid"
}
}