Пример #1
0
        public DeploymentListApiModel(DeploymentServiceListModel deployments)
        {
            this.Items = new List <DeploymentApiModel>();
            deployments.Items.ForEach(deployment => this.Items.Add(new DeploymentApiModel(deployment)));

            this.Metadata = new Dictionary <string, string>
            {
                { "$type", $"DevicePropertyList;1" },
                { "$url", $"/v1/deviceproperties" },
            };
        }
Пример #2
0
 public DeploymentListApiModel(DeploymentServiceListModel deployments)
 {
     this.Items = new List <DeploymentApiModel>();
     deployments.Items.ForEach(deployment => this.Items.Add(new DeploymentApiModel(deployment)));
 }