예제 #1
0
 public JobStatistics(DeviceJobStatistics azureModel)
 {
     this.DeviceCount    = azureModel.DeviceCount;
     this.FailedCount    = azureModel.FailedCount;
     this.SucceededCount = azureModel.SucceededCount;
     this.RunningCount   = azureModel.RunningCount;
     this.PendingCount   = azureModel.PendingCount;
 }
 public static JobResponse JobResponse(string jobId = default, string queryCondition = default, DateTimeOffset?createdTime = default, DateTimeOffset?startTime = default, DateTimeOffset?endTime = default, long?maxExecutionTimeInSeconds = default, JobResponseType?type = default, CloudToDeviceMethodRequest cloudToDeviceMethod = default, TwinData updateTwin = default, JobResponseStatus?status = default, string failureReason = default, string statusMessage = default, DeviceJobStatistics deviceJobStatistics = default)
 {
     return(new JobResponse(jobId, queryCondition, createdTime, startTime, endTime, maxExecutionTimeInSeconds, type, cloudToDeviceMethod, updateTwin, status, failureReason, statusMessage, deviceJobStatistics));
 }