Exemple #1
0
 public void MergeFrom(SaveDiaryRes other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Ret != 0)
     {
         Ret = other.Ret;
     }
     if (other.userDiary_ != null)
     {
         if (userDiary_ == null)
         {
             userDiary_ = new global::Com.Proto.UserDiaryPB();
         }
         UserDiary.MergeFrom(other.UserDiary);
     }
     if (other.userFavorability_ != null)
     {
         if (userFavorability_ == null)
         {
             userFavorability_ = new global::Com.Proto.UserFavorabilityPB();
         }
         UserFavorability.MergeFrom(other.UserFavorability);
     }
 }
Exemple #2
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 (userDiary_ == null)
                    {
                        userDiary_ = new global::Com.Proto.UserDiaryPB();
                    }
                    input.ReadMessage(userDiary_);
                    break;
                }

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