Esempio n. 1
0
 public void MergeFrom(UserInfo other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Uid != 0L)
     {
         Uid = other.Uid;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.Figure != 0)
     {
         Figure = other.Figure;
     }
     if (other.ext_ != null)
     {
         if (ext_ == null)
         {
             ext_ = new global::Org.OkraAx.V3.AxAny();
         }
         Ext.MergeFrom(other.Ext);
     }
 }
Esempio n. 2
0
 public void MergeFrom(MsgOnChat other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Channel != 0)
     {
         Channel = other.Channel;
     }
     if (other.from_ != null)
     {
         if (from_ == null)
         {
             from_ = new global::Org.OkraAx.V3.MsgChatUserInfo();
         }
         From.MergeFrom(other.From);
     }
     if (other.to_ != null)
     {
         if (to_ == null)
         {
             to_ = new global::Org.OkraAx.V3.AxAny();
         }
         To.MergeFrom(other.To);
     }
     if (other.Content.Length != 0)
     {
         Content = other.Content;
     }
 }
Esempio n. 3
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 10: {
                    if (source_ == null)
                    {
                        source_ = new global::Org.OkraAx.V3.AxAny();
                    }
                    input.ReadMessage(source_);
                    break;
                }

                case 18: {
                    Data = input.ReadBytes();
                    break;
                }
                }
            }
        }
Esempio n. 4
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 8: {
                    Uid = input.ReadInt64();
                    break;
                }

                case 18: {
                    Name = input.ReadString();
                    break;
                }

                case 24: {
                    Figure = input.ReadInt32();
                    break;
                }

                case 34: {
                    if (ext_ == null)
                    {
                        ext_ = new global::Org.OkraAx.V3.AxAny();
                    }
                    input.ReadMessage(ext_);
                    break;
                }

                case 42: {
                    items_.AddEntriesFrom(input, _map_items_codec);
                    break;
                }
                }
            }
        }
Esempio n. 5
0
 public void MergeFrom(GpcRelay other)
 {
     if (other == null)
     {
         return;
     }
     if (other.source_ != null)
     {
         if (source_ == null)
         {
             source_ = new global::Org.OkraAx.V3.AxAny();
         }
         Source.MergeFrom(other.Source);
     }
     if (other.Data.Length != 0)
     {
         Data = other.Data;
     }
 }
Esempio n. 6
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

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

                case 18: {
                    if (from_ == null)
                    {
                        from_ = new global::Org.OkraAx.V3.MsgChatUserInfo();
                    }
                    input.ReadMessage(from_);
                    break;
                }

                case 26: {
                    if (to_ == null)
                    {
                        to_ = new global::Org.OkraAx.V3.AxAny();
                    }
                    input.ReadMessage(to_);
                    break;
                }

                case 34: {
                    Content = input.ReadString();
                    break;
                }
                }
            }
        }