예제 #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)
            });
        }
예제 #2
0
 // Default constructor used by web service requests
 public SimulationDeviceModelRef()
 {
     this.Id       = string.Empty;
     this.Count    = 1;
     this.Override = null;
 }