Beispiel #1
0
        public void Read(CancelSubmissionResult structs, Protocol iprot)
        {
            String schemeStruct = iprot.ReadStructBegin();

            if (schemeStruct != null)
            {
                while (true)
                {
                    String schemeField = iprot.ReadFieldBegin();
                    if (schemeField == null)
                    {
                        break;
                    }
                    bool needSkip = true;


                    if ("vendorProductSN".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        vipapis.product.VendorProductSN value;

                        value = new vipapis.product.VendorProductSN();
                        vipapis.product.VendorProductSNHelper.getInstance().Read(value, iprot);

                        structs.SetVendorProductSN(value);
                    }



                    if ("is_success".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        bool?value;
                        value = iprot.ReadBool();

                        structs.SetIs_success(value);
                    }



                    if (needSkip)
                    {
                        ProtocolUtil.skip(iprot);
                    }

                    iprot.ReadFieldEnd();
                }

                iprot.ReadStructEnd();
                Validate(structs);
            }
            else
            {
                throw new OspException();
            }
        }
Beispiel #2
0
 public void SetVendorProductSN(vipapis.product.VendorProductSN value)
 {
     this.vendorProductSN_ = value;
 }