[M] Move Alarm class to Models.swift

This commit is contained in:
Hykilpikonna
2021-01-14 11:58:23 -05:00
parent 7be4b6ab97
commit 702f4135a6
3 changed files with 7 additions and 26 deletions
-22
View File
@@ -1,22 +0,0 @@
//
// Alarm.swift
// ProjectClock
//
// Created by Aaron Saporito on 1/13/21.
//
import Foundation
class Alarm {
var alarmTime: Date
var text: String
var wakeMethod: WVM
init(alarmTime: Date, text: String, wakeMethod: WVM) {
self.alarmTime = alarmTime
self.text = text
self.wakeMethod = wakeMethod
}
}
+7
View File
@@ -15,6 +15,13 @@ struct User: Decodable
var pass: String
}
struct Alarm: Decodable
{
var alarmTime: Date
var text: String
var wakeMethod: WVM
}
struct Family: Decodable
{
var fid: Int