using iWareCommon.Utils;
|
using iWareModel.Entity.AGV;
|
using System;
|
|
namespace iWareCC.Common.Helper
|
{
|
public class AgvRequestHelper
|
{
|
/// <summary>
|
/// AGV的主机host
|
/// </summary>
|
private static string agvHost = ConfigHelper.GetConfigString("AgvHost");
|
/// <summary>
|
/// AGV-查询车辆列表(可查指定名称)
|
/// </summary>
|
private static string agvUrl_RobotsStatus = ConfigHelper.GetConfigString("RobotsStatus");
|
|
/// <summary>
|
/// 查询车辆列表
|
/// </summary>
|
/// <param name="agvTaskParam"></param>
|
/// <returns></returns>
|
public static AGVRetModel GetVehicles()
|
{
|
var agvResults = new HTTPService(agvHost).getContent<AGVRetModel>(agvUrl_RobotsStatus, Guid.NewGuid(), 30);
|
return agvResults;
|
}
|
|
}
|
}
|