2021-11-03 18:40:45 +00:00
|
|
|
//
|
|
|
|
// Constants.swift
|
|
|
|
// Toki Trainer
|
|
|
|
//
|
|
|
|
// Created by Avery Ada Pace on 11/2/21.
|
|
|
|
//
|
|
|
|
|
|
|
|
import Foundation
|
|
|
|
import UIKit
|
2021-11-07 23:12:21 +00:00
|
|
|
import CoreData
|
2021-11-03 18:40:45 +00:00
|
|
|
|
|
|
|
struct K {
|
|
|
|
static let posColors = [
|
|
|
|
"n": UIColor.systemGreen,
|
|
|
|
"mod": UIColor.systemYellow,
|
|
|
|
"sep": UIColor.systemPurple,
|
|
|
|
"vt": UIColor.systemBlue,
|
|
|
|
"vi": UIColor.systemCyan,
|
|
|
|
"interj": UIColor.systemRed,
|
|
|
|
"prep": UIColor.systemBrown,
|
|
|
|
"conj": UIColor.systemBrown,
|
|
|
|
"kama": UIColor.systemBrown,
|
|
|
|
"cont": UIColor.systemBrown,
|
|
|
|
"oth": UIColor.systemBrown,
|
|
|
|
"extra": UIColor.systemBrown
|
|
|
|
]
|
2023-12-21 01:35:44 +00:00
|
|
|
|
|
|
|
struct UserDefaults {
|
|
|
|
static let donationHearts = "donationHearts"
|
|
|
|
static let hasDonated = "hasDonated"
|
|
|
|
}
|
|
|
|
|
|
|
|
struct ConsumableTransactions {
|
|
|
|
static let TierOne = "SingleTimeTipTierOne"
|
|
|
|
static let TierTwo = "SingleTimeTipTierTwo"
|
|
|
|
static let TierThree = "SingleTimeTipTierThree"
|
|
|
|
static let TierFour = "SingleTimeTipTierFour"
|
|
|
|
}
|
|
|
|
|
|
|
|
struct MonthlyTransactions {
|
|
|
|
static let TierOne = "TierOne"
|
|
|
|
static let TierTwo = "TierTwo"
|
|
|
|
static let TierThree = "TierThree"
|
|
|
|
}
|
|
|
|
|
2021-11-07 23:12:21 +00:00
|
|
|
static var getFlashCardAnswersFetchRequest: NSFetchRequest<FlashCardAnswer> {
|
|
|
|
let request: NSFetchRequest<FlashCardAnswer> = FlashCardAnswer.fetchRequest()
|
|
|
|
request.sortDescriptors = []
|
|
|
|
|
|
|
|
return request
|
|
|
|
}
|
2021-11-07 23:51:48 +00:00
|
|
|
|
|
|
|
static var getFlashCardAnswersWithPredicateFetchRequest: NSFetchRequest<FlashCardAnswer> {
|
|
|
|
let request: NSFetchRequest<FlashCardAnswer> = FlashCardAnswer.fetchRequest()
|
|
|
|
request.sortDescriptors = []
|
|
|
|
request.predicate = NSPredicate(format: "word == %@", "a")
|
|
|
|
|
|
|
|
return request
|
|
|
|
}
|
2021-11-09 18:17:22 +00:00
|
|
|
|
|
|
|
static var getLessonAnswersFetchRequest: NSFetchRequest<LessonAnswer> {
|
|
|
|
let request: NSFetchRequest<LessonAnswer> = LessonAnswer.fetchRequest()
|
|
|
|
request.sortDescriptors = []
|
|
|
|
|
|
|
|
return request
|
|
|
|
}
|
2021-11-03 18:40:45 +00:00
|
|
|
}
|