/// <summary> /// Converts a native HB rate structure to an HBRate object. /// </summary> /// <param name="rate"> /// The structure to convert. /// </param> /// <returns> /// The converted rate object. /// </returns> public static HBRate NativeToRate(hb_rate_s rate) { return new HBRate { Name = rate.name, Rate = rate.rate }; }
/// <summary> /// Converts a native HB rate structure to an HBRate object. /// </summary> /// <param name="rate"> /// The structure to convert. /// </param> /// <returns> /// The converted rate object. /// </returns> internal static HBRate NativeToRate(hb_rate_s rate) { return new HBRate(rate.name, rate.rate); }