Timestamps
extension Timestamps
-
Checklist.Item IDs for non-places
See moreDeclaration
Swift
enum Info : Int
-
Status of a timestamp
See moreDeclaration
Swift
struct UpdateStatus
-
Expected maximum wait time for rank update
Declaration
Swift
static var rankUpdateMinutes: Int
-
Get item’s timestamp
Declaration
Swift
func stamp(item: Checklist.Item) -> Date?
Parameters
item
Item
Return Value
Timestamp if found
-
Convenience timestamp check
Declaration
Swift
func isStamped(item: Checklist.Item) -> Bool
Parameters
item
Item
Return Value
Whether timestamped
-
Set timestamps for checklist
Declaration
Swift
mutating func set(list: Checklist, stamped: Bool)
Parameters
list
Checklist
stamped
Whether timestampled
-
Set timestamps for item
Declaration
Swift
mutating func set(item: Checklist.Item, stamped: Bool, update: Bool = true)
Parameters
item
Item
stamped
Whether stamped
update
Whether to update stamp
-
Set specific key stamp
Parameters
key
Item key
stamped
Whether stamped
update
Whether to update stamp
-
Are rankings waiting for an update?
Declaration
Swift
func waiting(rankings: Checklist) -> Bool
Parameters
rankings
Checklist
Return Value
Whether waiting
-
How many minutes to wait
Declaration
Swift
func wait(rankings: Checklist) -> Int
Parameters
rankings
Checklist
Return Value
Minutes to wait
-
Fetch current status
Declaration
Swift
func updateStatus(rankings: Checklist) -> UpdateStatus
Parameters
rankings
Checklist
Return Value
UpdateStatus
-
Clear waiting state if expired
Declaration
Swift
mutating func clear(rankings: Checklist) -> Bool
Parameters
rankings
Checklist
Return Value
Whether cleared
-
Are scorecards waiting for an update?
Declaration
Swift
func waiting(scorecard: Checklist) -> Bool
Parameters
scorecard
Checklist
Return Value
Whether waiting
-
How many minutes to wait
Declaration
Swift
func wait(scorecard: Checklist) -> Int
Parameters
scorecard
Checklist
Return Value
Minutes to wait
-
Fetch current status
Declaration
Swift
func updateStatus(scorecard: Checklist) -> UpdateStatus
Parameters
scorecard
Checklist
Return Value
UpdateStatus
-
Clear waiting state if expired
Declaration
Swift
mutating func clear(scorecard: Checklist) -> Bool
Parameters
scorecard
Checklist
Return Value
Whether cleared