AssetLog
public final class AssetLog: NSObject, Decodable
The results of automatic asset’s location updates. They are sent in AlertingServiceNotification and can be retrieved
by accessing notification’s userInfo[log
].
-
Related
Asset‘s id.Declaration
Swift
public var id: String? -
Time when log was written.
Declaration
Swift
public var time: String -
Location in which asset update attempt started.
Declaration
Swift
public var location: (latitude: Double, longtitude: Double) -
Indicates if update was successful or not.
Declaration
Swift
public var updateSuccess: Bool -
Error which occurred while location update attempt. Will be nil if update was successful.
Declaration
Swift
public var error: String? -
Returns JSON representation of
AssetLogobject.Declaration
Swift
public func json() -> [String: Any]? -
Creates
AssetLogobject from JSON object.Declaration
Swift
public static func logFromJson(_ json: [String: Any]) -> AssetLog?
AssetLog Class Reference