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: {
                    ActivityId = input.ReadSInt32();
                    break;
                }

                case 16: {
                    UniqueIdentify = input.ReadSInt32();
                    break;
                }

                case 24: {
                    type_ = (global::ActivityTypePB)input.ReadEnum();
                    break;
                }

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

                case 42: {
                    BackgroundPicture = input.ReadString();
                    break;
                }

                case 50: {
                    Desc = input.ReadString();
                    break;
                }

                case 56: {
                    StartTime = input.ReadSInt64();
                    break;
                }

                case 64: {
                    EndTime = input.ReadSInt64();
                    break;
                }

                case 72: {
                    ShowEndTime = input.ReadSInt64();
                    break;
                }

                case 80: {
                    Sort = input.ReadSInt32();
                    break;
                }

                case 88: {
                    OverdueTime = input.ReadSInt32();
                    break;
                }

                case 96: {
                    endType_ = (global::ActivityEndTypePB)input.ReadEnum();
                    break;
                }

                case 104: {
                    IsDisplay = input.ReadSInt32();
                    break;
                }

                case 114: {
                    if (activityExtra_ == null)
                    {
                        activityExtra_ = new global::Com.Proto.ActivityExtraPB();
                    }
                    input.ReadMessage(activityExtra_);
                    break;
                }
                }
            }
        }
Exemplo n.º 2
0
 public void MergeFrom(ActivityPB other)
 {
     if (other == null)
     {
         return;
     }
     if (other.ActivityId != 0)
     {
         ActivityId = other.ActivityId;
     }
     if (other.UniqueIdentify != 0)
     {
         UniqueIdentify = other.UniqueIdentify;
     }
     if (other.Type != 0)
     {
         Type = other.Type;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.BackgroundPicture.Length != 0)
     {
         BackgroundPicture = other.BackgroundPicture;
     }
     if (other.Desc.Length != 0)
     {
         Desc = other.Desc;
     }
     if (other.StartTime != 0L)
     {
         StartTime = other.StartTime;
     }
     if (other.EndTime != 0L)
     {
         EndTime = other.EndTime;
     }
     if (other.ShowEndTime != 0L)
     {
         ShowEndTime = other.ShowEndTime;
     }
     if (other.Sort != 0)
     {
         Sort = other.Sort;
     }
     if (other.OverdueTime != 0)
     {
         OverdueTime = other.OverdueTime;
     }
     if (other.EndType != 0)
     {
         EndType = other.EndType;
     }
     if (other.IsDisplay != 0)
     {
         IsDisplay = other.IsDisplay;
     }
     if (other.activityExtra_ != null)
     {
         if (activityExtra_ == null)
         {
             activityExtra_ = new global::Com.Proto.ActivityExtraPB();
         }
         ActivityExtra.MergeFrom(other.ActivityExtra);
     }
 }