public void Read(GetDeliveryListRequest structs, Protocol iprot) { String schemeStruct = iprot.ReadStructBegin(); if (schemeStruct != null) { while (true) { String schemeField = iprot.ReadFieldBegin(); if (schemeField == null) { break; } bool needSkip = true; if ("vendorId".Equals(schemeField.Trim())) { needSkip = false; int?value; value = iprot.ReadI32(); structs.SetVendorId(value); } if ("poNo".Equals(schemeField.Trim())) { needSkip = false; string value; value = iprot.ReadString(); structs.SetPoNo(value); } if ("storageNo".Equals(schemeField.Trim())) { needSkip = false; string value; value = iprot.ReadString(); structs.SetStorageNo(value); } if ("vipWarehouse".Equals(schemeField.Trim())) { needSkip = false; string value; value = iprot.ReadString(); structs.SetVipWarehouse(value); } if ("outFlag".Equals(schemeField.Trim())) { needSkip = false; int?value; value = iprot.ReadI32(); structs.SetOutFlag(value); } if ("outTimeFrom".Equals(schemeField.Trim())) { needSkip = false; System.DateTime?value; value = Osp.Sdk.Util.TimeUtil.FromUnixTime(iprot.ReadI64()); structs.SetOutTimeFrom(value); } if ("outTimeTo".Equals(schemeField.Trim())) { needSkip = false; System.DateTime?value; value = Osp.Sdk.Util.TimeUtil.FromUnixTime(iprot.ReadI64()); structs.SetOutTimeTo(value); } if ("arrivalTimeFrom".Equals(schemeField.Trim())) { needSkip = false; System.DateTime?value; value = Osp.Sdk.Util.TimeUtil.FromUnixTime(iprot.ReadI64()); structs.SetArrivalTimeFrom(value); } if ("arrivalTimeTo".Equals(schemeField.Trim())) { needSkip = false; System.DateTime?value; value = Osp.Sdk.Util.TimeUtil.FromUnixTime(iprot.ReadI64()); structs.SetArrivalTimeTo(value); } if ("realArrivalTimeFrom".Equals(schemeField.Trim())) { needSkip = false; System.DateTime?value; value = Osp.Sdk.Util.TimeUtil.FromUnixTime(iprot.ReadI64()); structs.SetRealArrivalTimeFrom(value); } if ("realArrivalTimeTo".Equals(schemeField.Trim())) { needSkip = false; System.DateTime?value; value = Osp.Sdk.Util.TimeUtil.FromUnixTime(iprot.ReadI64()); structs.SetRealArrivalTimeTo(value); } if ("erpWarehouse".Equals(schemeField.Trim())) { needSkip = false; string value; value = iprot.ReadString(); structs.SetErpWarehouse(value); } if ("pagination".Equals(schemeField.Trim())) { needSkip = false; com.vip.vop.vcloud.common.api.Pagination value; value = new com.vip.vop.vcloud.common.api.Pagination(); com.vip.vop.vcloud.common.api.PaginationHelper.getInstance().Read(value, iprot); structs.SetPagination(value); } if ("deliveryTimeFrom".Equals(schemeField.Trim())) { needSkip = false; System.DateTime?value; value = Osp.Sdk.Util.TimeUtil.FromUnixTime(iprot.ReadI64()); structs.SetDeliveryTimeFrom(value); } if ("deliveryTimeTo".Equals(schemeField.Trim())) { needSkip = false; System.DateTime?value; value = Osp.Sdk.Util.TimeUtil.FromUnixTime(iprot.ReadI64()); structs.SetDeliveryTimeTo(value); } if ("needPush".Equals(schemeField.Trim())) { needSkip = false; int?value; value = iprot.ReadI32(); structs.SetNeedPush(value); } if ("userId".Equals(schemeField.Trim())) { needSkip = false; long value; value = iprot.ReadI64(); structs.SetUserId(value); } if (needSkip) { ProtocolUtil.skip(iprot); } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); Validate(structs); } else { throw new OspException(); } }
public void Read(GetDeliveryGoodsResponse structs, Protocol iprot) { String schemeStruct = iprot.ReadStructBegin(); if (schemeStruct != null) { while (true) { String schemeField = iprot.ReadFieldBegin(); if (schemeField == null) { break; } bool needSkip = true; if ("deliveryGoodsList".Equals(schemeField.Trim())) { needSkip = false; List <com.vip.vop.vcloud.jit.DeliveryDetail> value; value = new List <com.vip.vop.vcloud.jit.DeliveryDetail>(); iprot.ReadListBegin(); while (true) { try{ com.vip.vop.vcloud.jit.DeliveryDetail elem0; elem0 = new com.vip.vop.vcloud.jit.DeliveryDetail(); com.vip.vop.vcloud.jit.DeliveryDetailHelper.getInstance().Read(elem0, iprot); value.Add(elem0); } catch (Exception e) { break; } } iprot.ReadListEnd(); structs.SetDeliveryGoodsList(value); } if ("pagination".Equals(schemeField.Trim())) { needSkip = false; com.vip.vop.vcloud.common.api.Pagination value; value = new com.vip.vop.vcloud.common.api.Pagination(); com.vip.vop.vcloud.common.api.PaginationHelper.getInstance().Read(value, iprot); structs.SetPagination(value); } if (needSkip) { ProtocolUtil.skip(iprot); } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); Validate(structs); } else { throw new OspException(); } }
public void Read(GetDeliveryDetailRequest structs, Protocol iprot) { String schemeStruct = iprot.ReadStructBegin(); if (schemeStruct != null) { while (true) { String schemeField = iprot.ReadFieldBegin(); if (schemeField == null) { break; } bool needSkip = true; if ("vendorId".Equals(schemeField.Trim())) { needSkip = false; int?value; value = iprot.ReadI32(); structs.SetVendorId(value); } if ("storageNo".Equals(schemeField.Trim())) { needSkip = false; string value; value = iprot.ReadString(); structs.SetStorageNo(value); } if ("pagination".Equals(schemeField.Trim())) { needSkip = false; com.vip.vop.vcloud.common.api.Pagination value; value = new com.vip.vop.vcloud.common.api.Pagination(); com.vip.vop.vcloud.common.api.PaginationHelper.getInstance().Read(value, iprot); structs.SetPagination(value); } if (needSkip) { ProtocolUtil.skip(iprot); } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); Validate(structs); } else { throw new OspException(); } }
public void SetPagination(com.vip.vop.vcloud.common.api.Pagination value) { this.pagination_ = value; }