Exemplo n.º 1
0
        // Map service model to API model
        public static SimulationDeviceModelRef FromServiceModel(Simulation.DeviceModelRef value)
        {
            if (value == null)
            {
                return(null);
            }

            return(new SimulationDeviceModelRef
            {
                Id = value.Id,
                Count = value.Count,
                Override = DeviceModelApiModelOverride.FromServiceModel(value.Override)
            });
        }
Exemplo n.º 2
0
 // Default constructor used by web service requests
 public SimulationDeviceModelRef()
 {
     this.Id       = string.Empty;
     this.Count    = 1;
     this.Override = null;
 }