コード例 #1
0
ファイル: FriendsTypes.cs プロジェクト: doriangray2/Tools
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 8: {
                    FirstReceived = input.ReadBool();
                    break;
                }

                case 18:
                case 16: {
                    role_.AddEntriesFrom(input, _repeated_role_codec);
                    break;
                }

                case 826: {
                    if (friendInvitation_ == null)
                    {
                        friendInvitation_ = new global::Bgs.Protocol.Friends.V1.FriendInvitation();
                    }
                    input.ReadMessage(friendInvitation_);
                    break;
                }
                }
            }
        }
コード例 #2
0
ファイル: FriendsTypes.cs プロジェクト: doriangray2/Tools
 public void MergeFrom(FriendInvitation other)
 {
     if (other == null)
     {
         return;
     }
     if (other.FirstReceived != false)
     {
         FirstReceived = other.FirstReceived;
     }
     role_.Add(other.role_);
     if (other.friendInvitation_ != null)
     {
         if (friendInvitation_ == null)
         {
             friendInvitation_ = new global::Bgs.Protocol.Friends.V1.FriendInvitation();
         }
         FriendInvitation_.MergeFrom(other.FriendInvitation_);
     }
 }