|
|
|
@ -80,7 +80,8 @@ namespace Sln.Wcs.HikRoBotSdk
|
|
|
|
.WithHeader("Content-Type", hikRoBotConfig.contentType)
|
|
|
|
.WithHeader("Content-Type", hikRoBotConfig.contentType)
|
|
|
|
.WithHeader("User-Agent", hikRoBotConfig.userAgent)
|
|
|
|
.WithHeader("User-Agent", hikRoBotConfig.userAgent)
|
|
|
|
.WithHeader("X-lr-request-id", System.Guid.NewGuid().ToString("N"))
|
|
|
|
.WithHeader("X-lr-request-id", System.Guid.NewGuid().ToString("N"))
|
|
|
|
.WithHeader("X-lr-version", hikRoBotConfig.xlrVersion);
|
|
|
|
.WithHeader("X-lr-version", hikRoBotConfig.xlrVersion)
|
|
|
|
|
|
|
|
.WithTimeout(TimeSpan.FromSeconds(15));
|
|
|
|
string json = JsonConvert.SerializeObject(gbTaskSubmit);
|
|
|
|
string json = JsonConvert.SerializeObject(gbTaskSubmit);
|
|
|
|
Console.WriteLine($"请求报文:{json}");
|
|
|
|
Console.WriteLine($"请求报文:{json}");
|
|
|
|
|
|
|
|
|
|
|
|
@ -101,8 +102,8 @@ namespace Sln.Wcs.HikRoBotSdk
|
|
|
|
.WithHeader("Content-Type", hikRoBotConfig.contentType)
|
|
|
|
.WithHeader("Content-Type", hikRoBotConfig.contentType)
|
|
|
|
.WithHeader("User-Agent", hikRoBotConfig.userAgent)
|
|
|
|
.WithHeader("User-Agent", hikRoBotConfig.userAgent)
|
|
|
|
.WithHeader("X-lr-request-id", System.Guid.NewGuid().ToString("N"))
|
|
|
|
.WithHeader("X-lr-request-id", System.Guid.NewGuid().ToString("N"))
|
|
|
|
.WithHeader("X-lr-version", hikRoBotConfig.xlrVersion);
|
|
|
|
.WithHeader("X-lr-version", hikRoBotConfig.xlrVersion)
|
|
|
|
Console.WriteLine($"请求报文:{JsonConvert.SerializeObject(gbContinueTask)}");
|
|
|
|
.WithTimeout(TimeSpan.FromSeconds(15));
|
|
|
|
|
|
|
|
|
|
|
|
return request.PostJsonAsync(gbContinueTask).Result.GetJsonAsync<GbContinueTaskResultDto>().Result;
|
|
|
|
return request.PostJsonAsync(gbContinueTask).Result.GetJsonAsync<GbContinueTaskResultDto>().Result;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -121,8 +122,8 @@ namespace Sln.Wcs.HikRoBotSdk
|
|
|
|
.WithHeader("Content-Type", hikRoBotConfig.contentType)
|
|
|
|
.WithHeader("Content-Type", hikRoBotConfig.contentType)
|
|
|
|
.WithHeader("User-Agent", hikRoBotConfig.userAgent)
|
|
|
|
.WithHeader("User-Agent", hikRoBotConfig.userAgent)
|
|
|
|
.WithHeader("X-lr-request-id", System.Guid.NewGuid().ToString("N"))
|
|
|
|
.WithHeader("X-lr-request-id", System.Guid.NewGuid().ToString("N"))
|
|
|
|
.WithHeader("X-lr-version", hikRoBotConfig.xlrVersion);
|
|
|
|
.WithHeader("X-lr-version", hikRoBotConfig.xlrVersion)
|
|
|
|
Console.WriteLine($"请求报文:{JsonConvert.SerializeObject(gbCancelTask)}");
|
|
|
|
.WithTimeout(TimeSpan.FromSeconds(15));
|
|
|
|
|
|
|
|
|
|
|
|
return request.PostJsonAsync(gbCancelTask).Result.GetJsonAsync<GbCancelTaskResultDto>().Result;
|
|
|
|
return request.PostJsonAsync(gbCancelTask).Result.GetJsonAsync<GbCancelTaskResultDto>().Result;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -141,8 +142,8 @@ namespace Sln.Wcs.HikRoBotSdk
|
|
|
|
.WithHeader("Content-Type", hikRoBotConfig.contentType)
|
|
|
|
.WithHeader("Content-Type", hikRoBotConfig.contentType)
|
|
|
|
.WithHeader("User-Agent", hikRoBotConfig.userAgent)
|
|
|
|
.WithHeader("User-Agent", hikRoBotConfig.userAgent)
|
|
|
|
.WithHeader("X-lr-request-id", System.Guid.NewGuid().ToString("N"))
|
|
|
|
.WithHeader("X-lr-request-id", System.Guid.NewGuid().ToString("N"))
|
|
|
|
.WithHeader("X-lr-version", hikRoBotConfig.xlrVersion);
|
|
|
|
.WithHeader("X-lr-version", hikRoBotConfig.xlrVersion)
|
|
|
|
Console.WriteLine($"请求报文:{JsonConvert.SerializeObject(taskGroup)}");
|
|
|
|
.WithTimeout(TimeSpan.FromSeconds(15));
|
|
|
|
|
|
|
|
|
|
|
|
return request.PostJsonAsync(taskGroup).Result.GetJsonAsync<TaskGroupResultDto>().Result;
|
|
|
|
return request.PostJsonAsync(taskGroup).Result.GetJsonAsync<TaskGroupResultDto>().Result;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -161,8 +162,8 @@ namespace Sln.Wcs.HikRoBotSdk
|
|
|
|
.WithHeader("Content-Type", hikRoBotConfig.contentType)
|
|
|
|
.WithHeader("Content-Type", hikRoBotConfig.contentType)
|
|
|
|
.WithHeader("User-Agent", hikRoBotConfig.userAgent)
|
|
|
|
.WithHeader("User-Agent", hikRoBotConfig.userAgent)
|
|
|
|
.WithHeader("X-lr-request-id", System.Guid.NewGuid().ToString("N"))
|
|
|
|
.WithHeader("X-lr-request-id", System.Guid.NewGuid().ToString("N"))
|
|
|
|
.WithHeader("X-lr-version", hikRoBotConfig.xlrVersion);
|
|
|
|
.WithHeader("X-lr-version", hikRoBotConfig.xlrVersion)
|
|
|
|
Console.WriteLine($"请求报文:{JsonConvert.SerializeObject(taskPriority)}");
|
|
|
|
.WithTimeout(TimeSpan.FromSeconds(15));
|
|
|
|
|
|
|
|
|
|
|
|
return request.PostJsonAsync(taskPriority).Result.GetJsonAsync<TaskPriorityResultDto>().Result;
|
|
|
|
return request.PostJsonAsync(taskPriority).Result.GetJsonAsync<TaskPriorityResultDto>().Result;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -181,8 +182,8 @@ namespace Sln.Wcs.HikRoBotSdk
|
|
|
|
.WithHeader("Content-Type", hikRoBotConfig.contentType)
|
|
|
|
.WithHeader("Content-Type", hikRoBotConfig.contentType)
|
|
|
|
.WithHeader("User-Agent", hikRoBotConfig.userAgent)
|
|
|
|
.WithHeader("User-Agent", hikRoBotConfig.userAgent)
|
|
|
|
.WithHeader("X-lr-request-id", System.Guid.NewGuid().ToString("N"))
|
|
|
|
.WithHeader("X-lr-request-id", System.Guid.NewGuid().ToString("N"))
|
|
|
|
.WithHeader("X-lr-version", hikRoBotConfig.xlrVersion);
|
|
|
|
.WithHeader("X-lr-version", hikRoBotConfig.xlrVersion)
|
|
|
|
Console.WriteLine($"请求报文:{JsonConvert.SerializeObject(zonePause)}");
|
|
|
|
.WithTimeout(TimeSpan.FromSeconds(15));
|
|
|
|
|
|
|
|
|
|
|
|
return request.PostJsonAsync(zonePause).Result.GetJsonAsync<ZonePauseResultDto>().Result;
|
|
|
|
return request.PostJsonAsync(zonePause).Result.GetJsonAsync<ZonePauseResultDto>().Result;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -201,8 +202,8 @@ namespace Sln.Wcs.HikRoBotSdk
|
|
|
|
.WithHeader("Content-Type", hikRoBotConfig.contentType)
|
|
|
|
.WithHeader("Content-Type", hikRoBotConfig.contentType)
|
|
|
|
.WithHeader("User-Agent", hikRoBotConfig.userAgent)
|
|
|
|
.WithHeader("User-Agent", hikRoBotConfig.userAgent)
|
|
|
|
.WithHeader("X-lr-request-id", System.Guid.NewGuid().ToString("N"))
|
|
|
|
.WithHeader("X-lr-request-id", System.Guid.NewGuid().ToString("N"))
|
|
|
|
.WithHeader("X-lr-version", hikRoBotConfig.xlrVersion);
|
|
|
|
.WithHeader("X-lr-version", hikRoBotConfig.xlrVersion)
|
|
|
|
Console.WriteLine($"请求报文:{JsonConvert.SerializeObject(zoneHoming)}");
|
|
|
|
.WithTimeout(TimeSpan.FromSeconds(15));
|
|
|
|
|
|
|
|
|
|
|
|
return request.PostJsonAsync(zoneHoming).Result.GetJsonAsync<ZoneHomingResultDto>().Result;
|
|
|
|
return request.PostJsonAsync(zoneHoming).Result.GetJsonAsync<ZoneHomingResultDto>().Result;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -221,8 +222,8 @@ namespace Sln.Wcs.HikRoBotSdk
|
|
|
|
.WithHeader("Content-Type", hikRoBotConfig.contentType)
|
|
|
|
.WithHeader("Content-Type", hikRoBotConfig.contentType)
|
|
|
|
.WithHeader("User-Agent", hikRoBotConfig.userAgent)
|
|
|
|
.WithHeader("User-Agent", hikRoBotConfig.userAgent)
|
|
|
|
.WithHeader("X-lr-request-id", System.Guid.NewGuid().ToString("N"))
|
|
|
|
.WithHeader("X-lr-request-id", System.Guid.NewGuid().ToString("N"))
|
|
|
|
.WithHeader("X-lr-version", hikRoBotConfig.xlrVersion);
|
|
|
|
.WithHeader("X-lr-version", hikRoBotConfig.xlrVersion)
|
|
|
|
Console.WriteLine($"请求报文:{JsonConvert.SerializeObject(zoneBanish)}");
|
|
|
|
.WithTimeout(TimeSpan.FromSeconds(15));
|
|
|
|
|
|
|
|
|
|
|
|
return request.PostJsonAsync(zoneBanish).Result.GetJsonAsync<ZoneBanishResultDto>().Result;
|
|
|
|
return request.PostJsonAsync(zoneBanish).Result.GetJsonAsync<ZoneBanishResultDto>().Result;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -241,8 +242,8 @@ namespace Sln.Wcs.HikRoBotSdk
|
|
|
|
.WithHeader("Content-Type", hikRoBotConfig.contentType)
|
|
|
|
.WithHeader("Content-Type", hikRoBotConfig.contentType)
|
|
|
|
.WithHeader("User-Agent", hikRoBotConfig.userAgent)
|
|
|
|
.WithHeader("User-Agent", hikRoBotConfig.userAgent)
|
|
|
|
.WithHeader("X-lr-request-id", System.Guid.NewGuid().ToString("N"))
|
|
|
|
.WithHeader("X-lr-request-id", System.Guid.NewGuid().ToString("N"))
|
|
|
|
.WithHeader("X-lr-version", hikRoBotConfig.xlrVersion);
|
|
|
|
.WithHeader("X-lr-version", hikRoBotConfig.xlrVersion)
|
|
|
|
Console.WriteLine($"请求报文:{JsonConvert.SerializeObject(zoneBlockade)}");
|
|
|
|
.WithTimeout(TimeSpan.FromSeconds(15));
|
|
|
|
|
|
|
|
|
|
|
|
return request.PostJsonAsync(zoneBlockade).Result.GetJsonAsync<ZoneBlockadeResultDto>().Result;
|
|
|
|
return request.PostJsonAsync(zoneBlockade).Result.GetJsonAsync<ZoneBlockadeResultDto>().Result;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -261,8 +262,8 @@ namespace Sln.Wcs.HikRoBotSdk
|
|
|
|
.WithHeader("Content-Type", hikRoBotConfig.contentType)
|
|
|
|
.WithHeader("Content-Type", hikRoBotConfig.contentType)
|
|
|
|
.WithHeader("User-Agent", hikRoBotConfig.userAgent)
|
|
|
|
.WithHeader("User-Agent", hikRoBotConfig.userAgent)
|
|
|
|
.WithHeader("X-lr-request-id", System.Guid.NewGuid().ToString("N"))
|
|
|
|
.WithHeader("X-lr-request-id", System.Guid.NewGuid().ToString("N"))
|
|
|
|
.WithHeader("X-lr-version", hikRoBotConfig.xlrVersion);
|
|
|
|
.WithHeader("X-lr-version", hikRoBotConfig.xlrVersion)
|
|
|
|
Console.WriteLine($"请求报文:{JsonConvert.SerializeObject(carrierBind)}");
|
|
|
|
.WithTimeout(TimeSpan.FromSeconds(15));
|
|
|
|
|
|
|
|
|
|
|
|
return request.PostJsonAsync(carrierBind).Result.GetJsonAsync<CarrierBindResultDto>().Result;
|
|
|
|
return request.PostJsonAsync(carrierBind).Result.GetJsonAsync<CarrierBindResultDto>().Result;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -281,8 +282,8 @@ namespace Sln.Wcs.HikRoBotSdk
|
|
|
|
.WithHeader("Content-Type", hikRoBotConfig.contentType)
|
|
|
|
.WithHeader("Content-Type", hikRoBotConfig.contentType)
|
|
|
|
.WithHeader("User-Agent", hikRoBotConfig.userAgent)
|
|
|
|
.WithHeader("User-Agent", hikRoBotConfig.userAgent)
|
|
|
|
.WithHeader("X-lr-request-id", System.Guid.NewGuid().ToString("N"))
|
|
|
|
.WithHeader("X-lr-request-id", System.Guid.NewGuid().ToString("N"))
|
|
|
|
.WithHeader("X-lr-version", hikRoBotConfig.xlrVersion);
|
|
|
|
.WithHeader("X-lr-version", hikRoBotConfig.xlrVersion)
|
|
|
|
Console.WriteLine($"请求报文:{JsonConvert.SerializeObject(carrierUnbind)}");
|
|
|
|
.WithTimeout(TimeSpan.FromSeconds(15));
|
|
|
|
|
|
|
|
|
|
|
|
return request.PostJsonAsync(carrierUnbind).Result.GetJsonAsync<CarrierUnbindResultDto>().Result;
|
|
|
|
return request.PostJsonAsync(carrierUnbind).Result.GetJsonAsync<CarrierUnbindResultDto>().Result;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -301,8 +302,8 @@ namespace Sln.Wcs.HikRoBotSdk
|
|
|
|
.WithHeader("Content-Type", hikRoBotConfig.contentType)
|
|
|
|
.WithHeader("Content-Type", hikRoBotConfig.contentType)
|
|
|
|
.WithHeader("User-Agent", hikRoBotConfig.userAgent)
|
|
|
|
.WithHeader("User-Agent", hikRoBotConfig.userAgent)
|
|
|
|
.WithHeader("X-lr-request-id", System.Guid.NewGuid().ToString("N"))
|
|
|
|
.WithHeader("X-lr-request-id", System.Guid.NewGuid().ToString("N"))
|
|
|
|
.WithHeader("X-lr-version", hikRoBotConfig.xlrVersion);
|
|
|
|
.WithHeader("X-lr-version", hikRoBotConfig.xlrVersion)
|
|
|
|
Console.WriteLine($"请求报文:{JsonConvert.SerializeObject(siteBind)}");
|
|
|
|
.WithTimeout(TimeSpan.FromSeconds(15));
|
|
|
|
|
|
|
|
|
|
|
|
return request.PostJsonAsync(siteBind).Result.GetJsonAsync<SiteBindResultDto>().Result;
|
|
|
|
return request.PostJsonAsync(siteBind).Result.GetJsonAsync<SiteBindResultDto>().Result;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -321,8 +322,8 @@ namespace Sln.Wcs.HikRoBotSdk
|
|
|
|
.WithHeader("Content-Type", hikRoBotConfig.contentType)
|
|
|
|
.WithHeader("Content-Type", hikRoBotConfig.contentType)
|
|
|
|
.WithHeader("User-Agent", hikRoBotConfig.userAgent)
|
|
|
|
.WithHeader("User-Agent", hikRoBotConfig.userAgent)
|
|
|
|
.WithHeader("X-lr-request-id", System.Guid.NewGuid().ToString("N"))
|
|
|
|
.WithHeader("X-lr-request-id", System.Guid.NewGuid().ToString("N"))
|
|
|
|
.WithHeader("X-lr-version", hikRoBotConfig.xlrVersion);
|
|
|
|
.WithHeader("X-lr-version", hikRoBotConfig.xlrVersion)
|
|
|
|
Console.WriteLine($"请求报文:{JsonConvert.SerializeObject(carrierLock)}");
|
|
|
|
.WithTimeout(TimeSpan.FromSeconds(15));
|
|
|
|
|
|
|
|
|
|
|
|
return request.PostJsonAsync(carrierLock).Result.GetJsonAsync<CarrierLockResultDto>().Result;
|
|
|
|
return request.PostJsonAsync(carrierLock).Result.GetJsonAsync<CarrierLockResultDto>().Result;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -341,8 +342,8 @@ namespace Sln.Wcs.HikRoBotSdk
|
|
|
|
.WithHeader("Content-Type", hikRoBotConfig.contentType)
|
|
|
|
.WithHeader("Content-Type", hikRoBotConfig.contentType)
|
|
|
|
.WithHeader("User-Agent", hikRoBotConfig.userAgent)
|
|
|
|
.WithHeader("User-Agent", hikRoBotConfig.userAgent)
|
|
|
|
.WithHeader("X-lr-request-id", System.Guid.NewGuid().ToString("N"))
|
|
|
|
.WithHeader("X-lr-request-id", System.Guid.NewGuid().ToString("N"))
|
|
|
|
.WithHeader("X-lr-version", hikRoBotConfig.xlrVersion);
|
|
|
|
.WithHeader("X-lr-version", hikRoBotConfig.xlrVersion)
|
|
|
|
Console.WriteLine($"请求报文:{JsonConvert.SerializeObject(siteLock)}");
|
|
|
|
.WithTimeout(TimeSpan.FromSeconds(15));
|
|
|
|
|
|
|
|
|
|
|
|
return request.PostJsonAsync(siteLock).Result.GetJsonAsync<SiteLockResultDto>().Result;
|
|
|
|
return request.PostJsonAsync(siteLock).Result.GetJsonAsync<SiteLockResultDto>().Result;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -361,8 +362,8 @@ namespace Sln.Wcs.HikRoBotSdk
|
|
|
|
.WithHeader("Content-Type", hikRoBotConfig.contentType)
|
|
|
|
.WithHeader("Content-Type", hikRoBotConfig.contentType)
|
|
|
|
.WithHeader("User-Agent", hikRoBotConfig.userAgent)
|
|
|
|
.WithHeader("User-Agent", hikRoBotConfig.userAgent)
|
|
|
|
.WithHeader("X-lr-request-id", System.Guid.NewGuid().ToString("N"))
|
|
|
|
.WithHeader("X-lr-request-id", System.Guid.NewGuid().ToString("N"))
|
|
|
|
.WithHeader("X-lr-version", hikRoBotConfig.xlrVersion);
|
|
|
|
.WithHeader("X-lr-version", hikRoBotConfig.xlrVersion)
|
|
|
|
Console.WriteLine($"请求报文:{JsonConvert.SerializeObject(preTask)}");
|
|
|
|
.WithTimeout(TimeSpan.FromSeconds(15));
|
|
|
|
|
|
|
|
|
|
|
|
return request.PostJsonAsync(preTask).Result.GetJsonAsync<PreTaskResultDto>().Result;
|
|
|
|
return request.PostJsonAsync(preTask).Result.GetJsonAsync<PreTaskResultDto>().Result;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -381,8 +382,8 @@ namespace Sln.Wcs.HikRoBotSdk
|
|
|
|
.WithHeader("Content-Type", hikRoBotConfig.contentType)
|
|
|
|
.WithHeader("Content-Type", hikRoBotConfig.contentType)
|
|
|
|
.WithHeader("User-Agent", hikRoBotConfig.userAgent)
|
|
|
|
.WithHeader("User-Agent", hikRoBotConfig.userAgent)
|
|
|
|
.WithHeader("X-lr-request-id", System.Guid.NewGuid().ToString("N"))
|
|
|
|
.WithHeader("X-lr-request-id", System.Guid.NewGuid().ToString("N"))
|
|
|
|
.WithHeader("X-lr-version", hikRoBotConfig.xlrVersion);
|
|
|
|
.WithHeader("X-lr-version", hikRoBotConfig.xlrVersion)
|
|
|
|
Console.WriteLine($"请求报文:{JsonConvert.SerializeObject(queryTask)}");
|
|
|
|
.WithTimeout(TimeSpan.FromSeconds(15));
|
|
|
|
|
|
|
|
|
|
|
|
return request.PostJsonAsync(queryTask).Result.GetJsonAsync<QueryTaskResultDto>().Result;
|
|
|
|
return request.PostJsonAsync(queryTask).Result.GetJsonAsync<QueryTaskResultDto>().Result;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -401,8 +402,8 @@ namespace Sln.Wcs.HikRoBotSdk
|
|
|
|
.WithHeader("Content-Type", hikRoBotConfig.contentType)
|
|
|
|
.WithHeader("Content-Type", hikRoBotConfig.contentType)
|
|
|
|
.WithHeader("User-Agent", hikRoBotConfig.userAgent)
|
|
|
|
.WithHeader("User-Agent", hikRoBotConfig.userAgent)
|
|
|
|
.WithHeader("X-lr-request-id", System.Guid.NewGuid().ToString("N"))
|
|
|
|
.WithHeader("X-lr-request-id", System.Guid.NewGuid().ToString("N"))
|
|
|
|
.WithHeader("X-lr-version", hikRoBotConfig.xlrVersion);
|
|
|
|
.WithHeader("X-lr-version", hikRoBotConfig.xlrVersion)
|
|
|
|
Console.WriteLine($"请求报文:{JsonConvert.SerializeObject(queryRobot)}");
|
|
|
|
.WithTimeout(TimeSpan.FromSeconds(15));
|
|
|
|
|
|
|
|
|
|
|
|
return request.PostJsonAsync(queryRobot).Result.GetJsonAsync<QueryRobotResultDto>().Result;
|
|
|
|
return request.PostJsonAsync(queryRobot).Result.GetJsonAsync<QueryRobotResultDto>().Result;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -421,8 +422,8 @@ namespace Sln.Wcs.HikRoBotSdk
|
|
|
|
.WithHeader("Content-Type", hikRoBotConfig.contentType)
|
|
|
|
.WithHeader("Content-Type", hikRoBotConfig.contentType)
|
|
|
|
.WithHeader("User-Agent", hikRoBotConfig.userAgent)
|
|
|
|
.WithHeader("User-Agent", hikRoBotConfig.userAgent)
|
|
|
|
.WithHeader("X-lr-request-id", System.Guid.NewGuid().ToString("N"))
|
|
|
|
.WithHeader("X-lr-request-id", System.Guid.NewGuid().ToString("N"))
|
|
|
|
.WithHeader("X-lr-version", hikRoBotConfig.xlrVersion);
|
|
|
|
.WithHeader("X-lr-version", hikRoBotConfig.xlrVersion)
|
|
|
|
Console.WriteLine($"请求报文:{JsonConvert.SerializeObject(queryCarrier)}");
|
|
|
|
.WithTimeout(TimeSpan.FromSeconds(15));
|
|
|
|
|
|
|
|
|
|
|
|
return request.PostJsonAsync(queryCarrier).Result.GetJsonAsync<QueryCarrierResultDto>().Result;
|
|
|
|
return request.PostJsonAsync(queryCarrier).Result.GetJsonAsync<QueryCarrierResultDto>().Result;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -441,8 +442,8 @@ namespace Sln.Wcs.HikRoBotSdk
|
|
|
|
.WithHeader("Content-Type", hikRoBotConfig.contentType)
|
|
|
|
.WithHeader("Content-Type", hikRoBotConfig.contentType)
|
|
|
|
.WithHeader("User-Agent", hikRoBotConfig.userAgent)
|
|
|
|
.WithHeader("User-Agent", hikRoBotConfig.userAgent)
|
|
|
|
.WithHeader("X-lr-request-id", System.Guid.NewGuid().ToString("N"))
|
|
|
|
.WithHeader("X-lr-request-id", System.Guid.NewGuid().ToString("N"))
|
|
|
|
.WithHeader("X-lr-version", hikRoBotConfig.xlrVersion);
|
|
|
|
.WithHeader("X-lr-version", hikRoBotConfig.xlrVersion)
|
|
|
|
Console.WriteLine($"请求报文:{JsonConvert.SerializeObject(matLabelBind)}");
|
|
|
|
.WithTimeout(TimeSpan.FromSeconds(15));
|
|
|
|
|
|
|
|
|
|
|
|
return request.PostJsonAsync(matLabelBind).Result.GetJsonAsync<MatLabelBindResultDto>().Result;
|
|
|
|
return request.PostJsonAsync(matLabelBind).Result.GetJsonAsync<MatLabelBindResultDto>().Result;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -461,8 +462,8 @@ namespace Sln.Wcs.HikRoBotSdk
|
|
|
|
.WithHeader("Content-Type", hikRoBotConfig.contentType)
|
|
|
|
.WithHeader("Content-Type", hikRoBotConfig.contentType)
|
|
|
|
.WithHeader("User-Agent", hikRoBotConfig.userAgent)
|
|
|
|
.WithHeader("User-Agent", hikRoBotConfig.userAgent)
|
|
|
|
.WithHeader("X-lr-request-id", System.Guid.NewGuid().ToString("N"))
|
|
|
|
.WithHeader("X-lr-request-id", System.Guid.NewGuid().ToString("N"))
|
|
|
|
.WithHeader("X-lr-version", hikRoBotConfig.xlrVersion);
|
|
|
|
.WithHeader("X-lr-version", hikRoBotConfig.xlrVersion)
|
|
|
|
Console.WriteLine($"请求报文:{JsonConvert.SerializeObject(matLabelUnbind)}");
|
|
|
|
.WithTimeout(TimeSpan.FromSeconds(15));
|
|
|
|
|
|
|
|
|
|
|
|
return request.PostJsonAsync(matLabelUnbind).Result.GetJsonAsync<MatLabelUnbindResultDto>().Result;
|
|
|
|
return request.PostJsonAsync(matLabelUnbind).Result.GetJsonAsync<MatLabelUnbindResultDto>().Result;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -481,8 +482,8 @@ namespace Sln.Wcs.HikRoBotSdk
|
|
|
|
.WithHeader("Content-Type", hikRoBotConfig.contentType)
|
|
|
|
.WithHeader("Content-Type", hikRoBotConfig.contentType)
|
|
|
|
.WithHeader("User-Agent", hikRoBotConfig.userAgent)
|
|
|
|
.WithHeader("User-Agent", hikRoBotConfig.userAgent)
|
|
|
|
.WithHeader("X-lr-request-id", System.Guid.NewGuid().ToString("N"))
|
|
|
|
.WithHeader("X-lr-request-id", System.Guid.NewGuid().ToString("N"))
|
|
|
|
.WithHeader("X-lr-version", hikRoBotConfig.xlrVersion);
|
|
|
|
.WithHeader("X-lr-version", hikRoBotConfig.xlrVersion)
|
|
|
|
Console.WriteLine($"请求报文:{JsonConvert.SerializeObject(equipmentNotify)}");
|
|
|
|
.WithTimeout(TimeSpan.FromSeconds(15));
|
|
|
|
|
|
|
|
|
|
|
|
return request.PostJsonAsync(equipmentNotify).Result.GetJsonAsync<EquipmentNotifyResultDto>().Result;
|
|
|
|
return request.PostJsonAsync(equipmentNotify).Result.GetJsonAsync<EquipmentNotifyResultDto>().Result;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -501,8 +502,8 @@ namespace Sln.Wcs.HikRoBotSdk
|
|
|
|
.WithHeader("Content-Type", hikRoBotConfig.contentType)
|
|
|
|
.WithHeader("Content-Type", hikRoBotConfig.contentType)
|
|
|
|
.WithHeader("User-Agent", hikRoBotConfig.userAgent)
|
|
|
|
.WithHeader("User-Agent", hikRoBotConfig.userAgent)
|
|
|
|
.WithHeader("X-lr-request-id", System.Guid.NewGuid().ToString("N"))
|
|
|
|
.WithHeader("X-lr-request-id", System.Guid.NewGuid().ToString("N"))
|
|
|
|
.WithHeader("X-lr-version", hikRoBotConfig.xlrVersion);
|
|
|
|
.WithHeader("X-lr-version", hikRoBotConfig.xlrVersion)
|
|
|
|
Console.WriteLine($"请求报文:{JsonConvert.SerializeObject(equipmentNotify)}");
|
|
|
|
.WithTimeout(TimeSpan.FromSeconds(15));
|
|
|
|
|
|
|
|
|
|
|
|
return request.PostJsonAsync(equipmentNotify).Result.GetJsonAsync<EquipmentNotifyResultDto>().Result;
|
|
|
|
return request.PostJsonAsync(equipmentNotify).Result.GetJsonAsync<EquipmentNotifyResultDto>().Result;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|