Beispiel #1
0
 public void MergeFrom(BuyItemRes other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Ret != 0)
     {
         Ret = other.Ret;
     }
     if (other.userMoney_ != null)
     {
         if (userMoney_ == null)
         {
             userMoney_ = new global::Com.Proto.UserMoneyPB();
         }
         UserMoney.MergeFrom(other.UserMoney);
     }
     if (other.userItem_ != null)
     {
         if (userItem_ == null)
         {
             userItem_ = new global::Com.Proto.UserItemPB();
         }
         UserItem.MergeFrom(other.UserItem);
     }
 }
Beispiel #2
0
 public void MergeFrom(UseVipExperienceRes other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Ret != 0)
     {
         Ret = other.Ret;
     }
     if (other.userMonthCard_ != null)
     {
         if (userMonthCard_ == null)
         {
             userMonthCard_ = new global::Com.Proto.UserMonthCardPB();
         }
         UserMonthCard.MergeFrom(other.UserMonthCard);
     }
     if (other.userItem_ != null)
     {
         if (userItem_ == null)
         {
             userItem_ = new global::Com.Proto.UserItemPB();
         }
         UserItem.MergeFrom(other.UserItem);
     }
 }
Beispiel #3
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 8: {
                    Ret = input.ReadSInt32();
                    break;
                }

                case 18: {
                    if (userMoney_ == null)
                    {
                        userMoney_ = new global::Com.Proto.UserMoneyPB();
                    }
                    input.ReadMessage(userMoney_);
                    break;
                }

                case 26: {
                    if (userDraw_ == null)
                    {
                        userDraw_ = new global::Com.Proto.UserDrawPB();
                    }
                    input.ReadMessage(userDraw_);
                    break;
                }

                case 34: {
                    awards_.AddEntriesFrom(input, _repeated_awards_codec);
                    break;
                }

                case 42: {
                    if (userDrawInfo_ == null)
                    {
                        userDrawInfo_ = new global::Com.Proto.UserDrawInfoPB();
                    }
                    input.ReadMessage(userDrawInfo_);
                    break;
                }

                case 50: {
                    if (userItem_ == null)
                    {
                        userItem_ = new global::Com.Proto.UserItemPB();
                    }
                    input.ReadMessage(userItem_);
                    break;
                }
                }
            }
        }
 public void MergeFrom(UpgradeDepartmentsRes other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Ret != 0)
     {
         Ret = other.Ret;
     }
     if (other.myDepartments_ != null)
     {
         if (myDepartments_ == null)
         {
             myDepartments_ = new global::Com.Proto.UserDepartmentPB();
         }
         MyDepartments.MergeFrom(other.MyDepartments);
     }
     if (other.userItem_ != null)
     {
         if (userItem_ == null)
         {
             userItem_ = new global::Com.Proto.UserItemPB();
         }
         UserItem.MergeFrom(other.UserItem);
     }
 }
Beispiel #5
0
 public void MergeFrom(DrawRes other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Ret != 0)
     {
         Ret = other.Ret;
     }
     if (other.userMoney_ != null)
     {
         if (userMoney_ == null)
         {
             userMoney_ = new global::Com.Proto.UserMoneyPB();
         }
         UserMoney.MergeFrom(other.UserMoney);
     }
     if (other.userDraw_ != null)
     {
         if (userDraw_ == null)
         {
             userDraw_ = new global::Com.Proto.UserDrawPB();
         }
         UserDraw.MergeFrom(other.UserDraw);
     }
     awards_.Add(other.awards_);
     if (other.userDrawInfo_ != null)
     {
         if (userDrawInfo_ == null)
         {
             userDrawInfo_ = new global::Com.Proto.UserDrawInfoPB();
         }
         UserDrawInfo.MergeFrom(other.UserDrawInfo);
     }
     if (other.userItem_ != null)
     {
         if (userItem_ == null)
         {
             userItem_ = new global::Com.Proto.UserItemPB();
         }
         UserItem.MergeFrom(other.UserItem);
     }
 }
Beispiel #6
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 8: {
                    Ret = input.ReadSInt32();
                    break;
                }

                case 18: {
                    if (userMoney_ == null)
                    {
                        userMoney_ = new global::Com.Proto.UserMoneyPB();
                    }
                    input.ReadMessage(userMoney_);
                    break;
                }

                case 26: {
                    if (userItem_ == null)
                    {
                        userItem_ = new global::Com.Proto.UserItemPB();
                    }
                    input.ReadMessage(userItem_);
                    break;
                }
                }
            }
        }