123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128 |
- using Ai.AgentServer.Server.FuelDto;
- namespace Ai.AgentServer.Server.Fuel
- {
- public class FuelSendRequest
- {
-
-
-
- public string Type { get; set; }
-
-
-
- public string ClientId { get; set; }
-
-
-
- public string AIId { get; set; }
-
-
-
- public string GLId { get; set; }
-
-
-
- public int NozzleNo { get; set; }
-
-
-
- public string OilCode { get; set; }
-
-
-
- public decimal Balance { get; set; }
-
-
-
- public decimal MaxRefuelingAmount { get; set; }
-
-
-
- public int CardType { get; set; }
-
-
-
- public decimal Amount { get; set; }
-
-
-
- public decimal Vol { get; set; }
-
-
-
- public int LicensePlateMatching { get; set; }
-
-
-
-
-
- public HttpThirdRequest BuildDto(int idType=1) {
- var dto= new HttpThirdRequest {
- userId = idType ==1?AIId:GLId,
- textInput=new Textinput()
- };
- dto.textInput.type = Type;
- switch (Type) {
- case "refuel_card_refund":
- case "refuel_card_max_oilamount":
- dto.textInput.payload = new Refuel_card_refund() {
- CardType = CardType,
- OilCode = OilCode,
- Balance=Balance,
- MaxRefuelingAmount=MaxRefuelingAmount,
- NozzleNo= NozzleNo
- };
- break;
-
- case "refuel_card_send_license_plate_match":
-
- dto.textInput.payload = new Refuel_card_send_license_plate_match()
- {
- CardType = CardType,
- OilCode = OilCode,
- LicensePlateMatching = LicensePlateMatching,
- NozzleNo = NozzleNo
- };
-
- break;
- case "fuelSend":
- dto.textInput.payload = new CardPayload(cardType: CardType, oilCode: OilCode, nozzleNo: NozzleNo);
- break;
- case "refuel_out_process":
- dto.textInput.payload = new Refuel_out_process() {
- CardType = CardType,
- OilCode = OilCode,
- Amount = Amount,
- Balance= Balance,
- NozzleNo= NozzleNo,
- Vol= Vol,
- MaxRefuelingAmount = MaxRefuelingAmount
- };
- break;
- default:
- dto.textInput.payload = new CardPayload(cardType: CardType, oilCode: OilCode, nozzleNo: NozzleNo);
- break;
- }
- return dto;
- }
- }
- }
|