2021-11-30 15:56:00 +03:00
|
|
|
// Copyright © 2021 Tokenary. All rights reserved.
|
2021-06-20 19:50:24 +03:00
|
|
|
|
|
|
|
import Foundation
|
|
|
|
|
|
|
|
struct Defaults {
|
|
|
|
|
|
|
|
private static let userDefaults = UserDefaults.standard
|
|
|
|
|
2021-08-14 13:43:38 +03:00
|
|
|
static var latestReviewRequestDate: Date? {
|
|
|
|
get {
|
|
|
|
return userDefaults.value(forKey: "latestReviewRequestDate") as? Date
|
|
|
|
}
|
|
|
|
set {
|
|
|
|
userDefaults.set(newValue, forKey: "latestReviewRequestDate")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static var reviewRequestsGoodMomentsCount: Int {
|
|
|
|
get {
|
|
|
|
return userDefaults.integer(forKey: "reviewRequestsGoodMomentsCount")
|
|
|
|
}
|
|
|
|
set {
|
|
|
|
userDefaults.set(newValue, forKey: "reviewRequestsGoodMomentsCount")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-10-29 16:38:12 +03:00
|
|
|
static var didReceiveShouldUpdateAppNotification: Bool {
|
|
|
|
get {
|
|
|
|
return userDefaults.bool(forKey: "didReceiveShouldUpdateAppNotification")
|
|
|
|
}
|
|
|
|
set {
|
|
|
|
userDefaults.set(newValue, forKey: "didReceiveShouldUpdateAppNotification")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-06-20 19:50:24 +03:00
|
|
|
}
|