Example #1
0
        public virtual void Put(int fieldPos, object fieldValue)
        {
            switch (fieldPos)
            {
            case 0: this._channelId = (System.Int64)fieldValue; break;

            case 1: this._status = (Energistics.Etp.v11.Datatypes.ChannelData.ChannelStatuses)fieldValue; break;

            default: throw new AvroRuntimeException("Bad index " + fieldPos + " in Put()");
            }
            ;
        }
        public virtual void Put(int fieldPos, object fieldValue)
        {
            switch (fieldPos)
            {
            case 0: this._channelUri = (System.String)fieldValue; break;

            case 1: this._channelId = (System.Int64)fieldValue; break;

            case 2: this._indexes = (IList <Energistics.Etp.v11.Datatypes.ChannelData.IndexMetadataRecord>)fieldValue; break;

            case 3: this._channelName = (System.String)fieldValue; break;

            case 4: this._dataType = (System.String)fieldValue; break;

            case 5: this._uom = (System.String)fieldValue; break;

            case 6: this._startIndex = (System.Nullable <long>)fieldValue; break;

            case 7: this._endIndex = (System.Nullable <long>)fieldValue; break;

            case 8: this._description = (System.String)fieldValue; break;

            case 9: this._status = (Energistics.Etp.v11.Datatypes.ChannelData.ChannelStatuses)fieldValue; break;

            case 10: this._contentType = (System.String)fieldValue; break;

            case 11: this._source = (System.String)fieldValue; break;

            case 12: this._measureClass = (System.String)fieldValue; break;

            case 13: this._uuid = (System.String)fieldValue; break;

            case 14: this._customData = (IDictionary <string, Energistics.Etp.v11.Datatypes.DataValue>)fieldValue; break;

            case 15: this._domainObject = (Energistics.Etp.v11.Datatypes.Object.DataObject)fieldValue; break;

            default: throw new AvroRuntimeException("Bad index " + fieldPos + " in Put()");
            }
            ;
        }