本文整理汇总了C#中Priority.ToNetString方法的典型用法代码示例。如果您正苦于以下问题:C# Priority.ToNetString方法的具体用法?C# Priority.ToNetString怎么用?C# Priority.ToNetString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Priority
的用法示例。
在下文中一共展示了Priority.ToNetString方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: AddDomesticPrice
/// <summary>
/// Add a new Domestic Price.
/// </summary>
/// <param name="priority">Priority this Price applies to.</param>
/// <param name="weightPrice">Cost per Gram.</param>
/// <param name="volumePrice">Cost per cm^3.</param>
public void AddDomesticPrice(Priority priority, int weightPrice, int volumePrice)
{
Send(NetCodes.CL_OBJECT_ADD, NetCodes.OBJECT_DOMESTIC_PRICE, priority.ToNetString(), Convert.ToString(weightPrice), Convert.ToString(volumePrice));
}
示例2: AddPrice
/// <summary>
/// Add a new Customer Price.
/// </summary>
/// <param name="originId">ID of Origin Location.</param>
/// <param name="destinationId">ID of Destination Location.</param>
/// <param name="priority">Priority this Price applies to.</param>
/// <param name="weightPrice">Cost per Gram.</param>
/// <param name="volumePrice">Cost per cm^3.</param>
public void AddPrice(int originId, int destinationId, Priority priority, int weightPrice, int volumePrice)
{
Send(NetCodes.CL_OBJECT_ADD, NetCodes.OBJECT_PRICE, Convert.ToString(originId), Convert.ToString(destinationId), priority.ToNetString(), Convert.ToString(weightPrice), Convert.ToString(volumePrice));
}