Exemplo n.º 1
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 8: {
                    FromWhere = input.ReadInt32();
                    break;
                }

                case 18: {
                    if (msg_ == null)
                    {
                        msg_ = new global::Com.Violet.Rpc.MessageData();
                    }
                    input.ReadMessage(msg_);
                    break;
                }
                }
            }
        }
Exemplo n.º 2
0
 public void MergeFrom(ChatMessagePush other)
 {
     if (other == null)
     {
         return;
     }
     if (other.FromWhere != 0)
     {
         FromWhere = other.FromWhere;
     }
     if (other.msg_ != null)
     {
         if (msg_ == null)
         {
             msg_ = new global::Com.Violet.Rpc.MessageData();
         }
         Msg.MergeFrom(other.Msg);
     }
 }