/// <summary>
 /// Initializes a new instance of the <see cref="CreateLocationResponse" /> class.
 /// </summary>
 /// <param name="locationId">The ID of the location. (required).</param>
 /// <param name="name">A name given for the location (eg. Home) (required).</param>
 /// <param name="countryCode">An ISO Alpha-3 country code.  (i.e. GBR, USA) (required).</param>
 /// <param name="latitude">A geographical latitude..</param>
 /// <param name="longitude">A geographical longitude..</param>
 /// <param name="regionRadius">The radius in meters around latitude and longitude which defines this location..</param>
 /// <param name="temperatureScale">The desired temperature scale used within location. Value can be F or C..</param>
 /// <param name="timeZoneId">An ID matching the Java Time Zone ID of the location. Automatically generated if latitude and longitude have been provided. .</param>
 /// <param name="locale">We expect a POSIX locale but we also accept an IETF BCP 47 language tag..</param>
 /// <param name="backgroundImage">Not currently in use..</param>
 /// <param name="additionalProperties">Additional information about the location that allows SmartThings to further define your location..</param>
 /// <param name="parent">parent.</param>
 /// <param name="created">The timestamp of when a location was created in UTC..</param>
 public CreateLocationResponse(Guid locationId = default(Guid), string name = default(string), string countryCode = default(string), decimal latitude = default(decimal), decimal longitude = default(decimal), int regionRadius = default(int), string temperatureScale = default(string), string timeZoneId = default(string), string locale = default(string), string backgroundImage = default(string), Dictionary <string, string> additionalProperties = default(Dictionary <string, string>), LocationParent parent = default(LocationParent), DateTime created = default(DateTime))
 {
     this.LocationId = locationId;
     // to ensure "name" is required (not null)
     if (name == null)
     {
         throw new ArgumentNullException("name is a required property for CreateLocationResponse and cannot be null");
     }
     this.Name = name;
     // to ensure "countryCode" is required (not null)
     if (countryCode == null)
     {
         throw new ArgumentNullException("countryCode is a required property for CreateLocationResponse and cannot be null");
     }
     this.CountryCode          = countryCode;
     this.Latitude             = latitude;
     this.Longitude            = longitude;
     this.RegionRadius         = regionRadius;
     this.TemperatureScale     = temperatureScale;
     this.TimeZoneId           = timeZoneId;
     this.Locale               = locale;
     this.BackgroundImage      = backgroundImage;
     this.AdditionalProperties = additionalProperties;
     this.Parent               = parent;
     this.Created              = created;
 }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PagedLocation" /> class.
 /// </summary>
 /// <param name="locationId">The ID of the location. (required).</param>
 /// <param name="name">A name given for the location (eg. Home) (required).</param>
 /// <param name="allowed">List of client-facing action identifiers that are currently permitted for the user. If the value of this property is not null, then any action not included in the list value of the property is currently prohibited for the user.   &lt;ul&gt;   &lt;li&gt; w:locations - the user can change the name of the location   &lt;li&gt; d:locations - the user can delete the location   &lt;li&gt; w:devices - the user can create devices on the location   &lt;li&gt; w:locations:geo - the user can edit the geo-coordinates of the location   &lt;li&gt; w:rooms - the user can create rooms on the location   &lt;/ul&gt; .</param>
 /// <param name="parent">parent (required).</param>
 public PagedLocation(Guid locationId = default(Guid), string name = default(string), List <AllowedEnum> allowed = default(List <AllowedEnum>), LocationParent parent = default(LocationParent))
 {
     this.LocationId = locationId;
     // to ensure "name" is required (not null)
     if (name == null)
     {
         throw new ArgumentNullException("name is a required property for PagedLocation and cannot be null");
     }
     this.Name = name;
     // to ensure "parent" is required (not null)
     if (parent == null)
     {
         throw new ArgumentNullException("parent is a required property for PagedLocation and cannot be null");
     }
     this.Parent  = parent;
     this.Allowed = allowed;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="CreateLocationRequest" /> class.
 /// </summary>
 /// <param name="name">A name given to the Location (e.g. Home) (required).</param>
 /// <param name="countryCode">An ISO Alpha-3 country code (e.g. GBR, USA) (required).</param>
 /// <param name="latitude">A geographical latitude..</param>
 /// <param name="longitude">A geographical longitude..</param>
 /// <param name="regionRadius">The radius in meters around latitude and longitude which defines this Location..</param>
 /// <param name="temperatureScale">The desired temperature scale used for the Location. Values include F and C..</param>
 /// <param name="locale">We expect a POSIX locale but we also accept an IETF BCP 47 language tag..</param>
 /// <param name="additionalProperties">Additional information about the Location that allows SmartThings to further define your Location..</param>
 /// <param name="parent">parent.</param>
 public CreateLocationRequest(string name = default(string), string countryCode = default(string), decimal latitude = default(decimal), decimal longitude = default(decimal), int regionRadius = default(int), string temperatureScale = default(string), string locale = default(string), Dictionary <string, string> additionalProperties = default(Dictionary <string, string>), LocationParent parent = default(LocationParent))
 {
     // to ensure "name" is required (not null)
     if (name == null)
     {
         throw new ArgumentNullException("name is a required property for CreateLocationRequest and cannot be null");
     }
     this.Name = name;
     // to ensure "countryCode" is required (not null)
     if (countryCode == null)
     {
         throw new ArgumentNullException("countryCode is a required property for CreateLocationRequest and cannot be null");
     }
     this.CountryCode          = countryCode;
     this.Latitude             = latitude;
     this.Longitude            = longitude;
     this.RegionRadius         = regionRadius;
     this.TemperatureScale     = temperatureScale;
     this.Locale               = locale;
     this.AdditionalProperties = additionalProperties;
     this.Parent               = parent;
 }