Asset

public final class Asset: NSObject

This class may represent user, property or any entity that can be described with location. You can subscribe your Asset object to receive notifications of upcoming weather events nearby it.

  • id

    Unique ID.

    Declaration

    Swift

    public var id: String?
  • Defines Asset‘s location to check for weather events nearby.

    Declaration

    Swift

    public var location: Location?
  • Instantiates new empty Asset object.

    Declaration

    Swift

    override public init()
  • Instantiates new Asset object with id.

    Declaration

    Swift

    public init(id: String)
  • Creates a copy of an Asset object.

    Declaration

    Swift

    public override func copy() -> Any

    Return Value

    New copied instance of Asset.

  • Compares two Assets by id.

    Declaration

    Swift

    public override func isEqual(_ object: Any?) -> Bool