SiteInfo
Represents site information from the Sites Manager service.
Declaration
struct SiteInfoConstructors
init?(fromC cValue: ARDK_SitesManager_SiteInfo)
Properties
| Name | Type | Summary |
|---|---|---|
| var description | String | |
| let hasLocation | Bool | Indicates whether latitude and longitude are valid. |
| let id | String | Site identifier. |
| let latitude | Double | Latitude coordinate (valid if hasLocation is true). |
| let longitude | Double | Longitude coordinate (valid if hasLocation is true). |
| let name | String | Site name. |
| let organizationId | String | Organization identifier that owns this site. |
| let parentSiteId | String? | Parent site identifier (nil if no parent site). |
| let status | String | Site status. |
Relationships
conforms to: Swift.CustomStringConvertible
Calling this property directly is discouraged. Instead, convert an
instance of any type to a string by using the
String(describing:)initializer. This initializer works with any type, and uses the custom
descriptionproperty for types that conform toCustomStringConvertible:struct Point: CustomStringConvertible {
let x: Int, y: Int
var description: String {
return "(\(x), \(y))"
}
}
let p = Point(x: 21, y: 30)
let s = String(describing: p)
print(s)
// Prints "(21, 30)"
The conversion of
pto a string in the assignment tosuses thePointtype'sdescriptionproperty.