/// <summary>
 /// Initializes a new instance of the <see cref="Location" /> class.
 /// </summary>
 /// <param name="Id">Id.</param>
 /// <param name="FloorplanId">FloorplanId.</param>
 /// <param name="Coordinates">Coordinates.</param>
 /// <param name="Notes">Notes.</param>
 /// <param name="LocationDefinition">LocationDefinition.</param>
 public Location(string Id = null, string FloorplanId = null, Dictionary <string, double?> Coordinates = null, string Notes = null, LocationDefinition LocationDefinition = null)
 {
     this.Id                 = Id;
     this.FloorplanId        = FloorplanId;
     this.Coordinates        = Coordinates;
     this.Notes              = Notes;
     this.LocationDefinition = LocationDefinition;
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Site" /> class.
 /// </summary>
 /// <param name="Name">The name of the entity. (required).</param>
 /// <param name="Description">Description.</param>
 /// <param name="Version">Version.</param>
 /// <param name="DateCreated">Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param>
 /// <param name="DateModified">Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param>
 /// <param name="ModifiedBy">ModifiedBy.</param>
 /// <param name="CreatedBy">CreatedBy.</param>
 /// <param name="State">State.</param>
 /// <param name="ModifiedByApp">ModifiedByApp.</param>
 /// <param name="CreatedByApp">CreatedByApp.</param>
 /// <param name="PrimarySites">PrimarySites.</param>
 /// <param name="SecondarySites">SecondarySites.</param>
 /// <param name="PrimaryEdges">PrimaryEdges.</param>
 /// <param name="SecondaryEdges">SecondaryEdges.</param>
 /// <param name="Addresses">Addresses.</param>
 /// <param name="Edges">Edges.</param>
 /// <param name="EdgeAutoUpdateConfig">Recurrance rule, time zone, and start/end settings for automatic edge updates for this site.</param>
 /// <param name="Location">Location (required).</param>
 /// <param name="Managed">Managed.</param>
 public Site(string Name = null, string Description = null, int?Version = null, DateTime?DateCreated = null, DateTime?DateModified = null, string ModifiedBy = null, string CreatedBy = null, StateEnum?State = null, string ModifiedByApp = null, string CreatedByApp = null, List <UriReference> PrimarySites = null, List <UriReference> SecondarySites = null, List <Edge> PrimaryEdges = null, List <Edge> SecondaryEdges = null, List <Contact> Addresses = null, List <Edge> Edges = null, EdgeAutoUpdateConfig EdgeAutoUpdateConfig = null, LocationDefinition Location = null, bool?Managed = null)
 {
     // to ensure "Name" is required (not null)
     if (Name == null)
     {
         throw new InvalidDataException("Name is a required property for Site and cannot be null");
     }
     else
     {
         this.Name = Name;
     }
     // to ensure "Location" is required (not null)
     if (Location == null)
     {
         throw new InvalidDataException("Location is a required property for Site and cannot be null");
     }
     else
     {
         this.Location = Location;
     }
     this.Description          = Description;
     this.Version              = Version;
     this.DateCreated          = DateCreated;
     this.DateModified         = DateModified;
     this.ModifiedBy           = ModifiedBy;
     this.CreatedBy            = CreatedBy;
     this.State                = State;
     this.ModifiedByApp        = ModifiedByApp;
     this.CreatedByApp         = CreatedByApp;
     this.PrimarySites         = PrimarySites;
     this.SecondarySites       = SecondarySites;
     this.PrimaryEdges         = PrimaryEdges;
     this.SecondaryEdges       = SecondaryEdges;
     this.Addresses            = Addresses;
     this.Edges                = Edges;
     this.EdgeAutoUpdateConfig = EdgeAutoUpdateConfig;
     this.Managed              = Managed;
 }