Event
public struct Event
extension Event: CustomStringConvertible
extension Event: Equatable
extension Event: Comparable
Event
-
Date of the event
Declaration
Swift
public let date: Date
-
Name of the event
Declaration
Swift
public let name: String
-
Value of the event
Declaration
Swift
public let value: String
-
MetaData of the event
Declaration
Swift
public let metaData: [String : String]
-
Create an Event
Declaration
Swift
public init(date: Date, name: String, value: String, metaData: [String : String] = [:])
Parameters
date
date
name
name
value
value
-
Returns the event string for the ledger.
Declaration
Swift
public var description: String { get }
-
Retuns if the two events are equal
Declaration
Swift
public static func == (lhs: Event, rhs: Event) -> Bool
Parameters
lhs
event 1
rhs
event 2
Return Value
true if the events are equal, false otherwise
-
Declaration
Swift
public static func < (lhs: Event, rhs: Event) -> Bool