ChangePriceRequest.cs 573 B

1234567891011121314151617181920
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace Censtar_31064V105OrV106_Pump.MessageEntity.Outgoing
  5. {
  6. public class ChangePriceRequest : MessageBase
  7. {
  8. /// <summary>
  9. ///
  10. /// </summary>
  11. /// <param name="price">without decimal points, should >=0 and <=999999</param>
  12. public ChangePriceRequest(int price)
  13. {
  14. if (price < 0 || price > 999999)
  15. throw new ArgumentOutOfRangeException("price should >=0 and <=999999");
  16. base.Cmd = 0x03;
  17. }
  18. }
  19. }