本文整理汇总了C#中TransportType.ToNetString方法的典型用法代码示例。如果您正苦于以下问题:C# TransportType.ToNetString方法的具体用法?C# TransportType.ToNetString怎么用?C# TransportType.ToNetString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TransportType
的用法示例。
在下文中一共展示了TransportType.ToNetString方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: AddRoute
/// <summary>
/// Add a new Route.
/// </summary>
/// <param name="originId">ID of Origin Location.</param>
/// <param name="destinationId">ID of Destination Location.</param>
/// <param name="companyId">ID of the Company providing this route.</param>
/// <param name="type">Transport type.</param>
/// <param name="weightCost">Cost per Gram.</param>
/// <param name="volumeCost">Cost per cm^3.</param>
/// <param name="weightMax">Maximum weight (g) per trip.</param>
/// <param name="volumeMax">Maximum volume (cm^3) per trip.</param>
/// <param name="duration">Trip duration.</param>
/// <param name="times">Departing times.</param>
public void AddRoute(int originId, int destinationId, int companyId, TransportType type, int weightCost, int volumeCost, int weightMax, int volumeMax, int duration, List<WeeklyTime> times)
{
Send(NetCodes.CL_OBJECT_ADD, NetCodes.OBJECT_ROUTE, Convert.ToString(originId), Convert.ToString(destinationId), Convert.ToString(companyId), type.ToNetString(), Convert.ToString(weightCost), Convert.ToString(volumeCost), Convert.ToString(weightMax), Convert.ToString(volumeMax), Convert.ToString(duration), WeeklyTime.BuildTimesNetString(times));
}