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

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

                case 24: {
                    moneyType_ = (global::MoneyTypePB)input.ReadEnum();
                    break;
                }

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

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

                case 48: {
                    Num = input.ReadSInt32();
                    break;
                }

                case 56: {
                    Price = input.ReadSInt32();
                    break;
                }

                case 64: {
                    MaxNum = input.ReadSInt32();
                    break;
                }
                }
            }
        }
Exemplo n.º 2
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 8: {
                    MallId = input.ReadSInt32();
                    break;
                }

                case 16: {
                    mallType_ = (global::MallTypePB)input.ReadEnum();
                    break;
                }

                case 24: {
                    mallSort_ = (global::MallSortPB)input.ReadEnum();
                    break;
                }

                case 32: {
                    moneyType_ = (global::MoneyTypePB)input.ReadEnum();
                    break;
                }

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

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

                case 58: {
                    GiftImage = input.ReadString();
                    break;
                }

                case 64: {
                    Slot = input.ReadSInt32();
                    break;
                }

                case 72: {
                    mallLabel_ = (global::MallLabelPB)input.ReadEnum();
                    break;
                }

                case 82: {
                    LabelImage = input.ReadString();
                    break;
                }

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

                case 96: {
                    OriginalPrice = input.ReadSInt32();
                    break;
                }

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

                case 114: {
                    award_.AddEntriesFrom(input, _repeated_award_codec);
                    break;
                }

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

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