コード例 #1
0
 public void SetRequirement(com.vip.order.biz.request.ResultRequirementMap value)
 {
     this.requirement_ = value;
 }
コード例 #2
0
        public void Read(GetCanRefundOrderListReq structs, Protocol iprot)
        {
            String schemeStruct = iprot.ReadStructBegin();

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


                    if ("orderSnSet".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        List <string> value;

                        value = new List <string>();
                        iprot.ReadSetBegin();
                        while (true)
                        {
                            try{
                                string elem0;
                                elem0 = iprot.ReadString();

                                value.Add(elem0);
                            }
                            catch (Exception e) {
                                break;
                            }
                        }

                        iprot.ReadSetEnd();

                        structs.SetOrderSnSet(value);
                    }



                    if ("userIdSet".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        List <long?> value;

                        value = new List <long?>();
                        iprot.ReadSetBegin();
                        while (true)
                        {
                            try{
                                long elem1;
                                elem1 = iprot.ReadI64();

                                value.Add(elem1);
                            }
                            catch (Exception e) {
                                break;
                            }
                        }

                        iprot.ReadSetEnd();

                        structs.SetUserIdSet(value);
                    }



                    if ("orderTimeRange".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        com.vip.order.common.pojo.order.request.RangeParam value;

                        value = new com.vip.order.common.pojo.order.request.RangeParam();
                        com.vip.order.common.pojo.order.request.RangeParamHelper.getInstance().Read(value, iprot);

                        structs.SetOrderTimeRange(value);
                    }



                    if ("requirement".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        com.vip.order.biz.request.ResultRequirementMap value;

                        value = new com.vip.order.biz.request.ResultRequirementMap();
                        com.vip.order.biz.request.ResultRequirementMapHelper.getInstance().Read(value, iprot);

                        structs.SetRequirement(value);
                    }



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

                    iprot.ReadFieldEnd();
                }

                iprot.ReadStructEnd();
                Validate(structs);
            }
            else
            {
                throw new OspException();
            }
        }