-
Notifications
You must be signed in to change notification settings - Fork 0
/
iOS-formats.txt
54 lines (48 loc) · 1.67 KB
/
iOS-formats.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
class Task: Object {
@objc dynamic var name: String = ""
@objc dynamic var order: Int = 0
@objc dynamic var completed: Bool = false
@objc dynamic var today: Bool = false
@objc dynamic var todayOrder: Int = 0
var parentProject = LinkingObjects(fromType: Project.self, property: "tasks")
}
class Contact: Object {
@objc dynamic var name: String = ""
@objc dynamic var notes: String = ""
@objc dynamic var day = Date()
var parentRelationship = LinkingObjects(fromType: Relationship.self, property: "contacts")
}
class Gratitude: Object {
@objc dynamic var name: String = ""
@objc dynamic var notes: String = ""
@objc dynamic var day = Date()
@objc dynamic var category: String = ""
@objc dynamic var rating: Int = 0
}
class Priority: Object {
@objc dynamic var name: String = ""
@objc dynamic var order: Int = 0
@objc dynamic var completed: Bool = false
let projects = List<Project>()
}
class Profile: Object {
@objc dynamic var name: String = ""
@objc dynamic var motto: String = ""
@objc dynamic var profilePic: String = ""
@objc dynamic var tasksCompleted: Int = 0
@objc dynamic var lastContact: Int = 0
}
class Project: Object {
@objc dynamic var name: String = ""
@objc dynamic var order: Int = 0
@objc dynamic var completed: Bool = false
var parentPriority = LinkingObjects(fromType: Priority.self, property: "projects")
let tasks = List<Task>()
}
class Relationship: Object {
@objc dynamic var name: String = ""
@objc dynamic var birthday: Date = Date()
@objc dynamic var lastContact: Date = Date()
@objc dynamic var notes: String = ""
let contacts = List<Contact>()
}