public StartPivotProgramsRequestBody(DeviceRequest model, string deviceId, string programId, int NoofRepeats)
        {
            this.DeviceId = deviceId;
            var program = new Program();

            program.NumberOfRepeats = NoofRepeats;
            Programs = new Programs();
            Programs.Add(programId, program);
            //Programs.CurrentProgramId = programId;
        }
Example #2
0
 public DevicesRequest(DeviceRequest device) : base(RequestKey)
 {
     this.Body = new DevicesRequestBody(new DeviceRequest[] { device });
 }
Example #3
0
 public StartStationsRequest(DeviceRequest device, int durationMinutes) : base(RequestKey)
 {
     this.Body = new StartStationsRequestBody(new DeviceRequest[] { device }, durationMinutes);
 }
 public StartPivotProgramsRequest(DeviceRequest devices, string programId, int noofrepeats) : base(RequestKey)
 {
     this.Body = new StartPivotProgramsRequestBody(devices, devices.Id, programId, noofrepeats);
 }
Example #5
0
 public StartProgramsRequest(DeviceRequest device) : base(RequestKey)
 {
     this.Body = new StartProgramsRequestBody(new DeviceRequest[] { device });
 }
Example #6
0
 public TestStationsRequest(DeviceRequest device) : base(RequestKey)
 {
     this.Body = new TestStationsRequestBody(new DeviceRequest[] { device });
 }
Example #7
0
 public PrevIrrigationsRequest(DeviceRequest device) : base(RequestKey)
 {
     this.Body = new PrevIrrigationsRequestBody(new DeviceRequest[] { device });
 }