Exemplo n.º 1
0
        public virtual void Put(int fieldPos, object fieldValue)
        {
            switch (fieldPos)
            {
            case 0: this._uri = (System.String)fieldValue; break;

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

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

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

            case 4: this._dataType = (Energistics.Etp.v12.Datatypes.DataValueType)fieldValue; break;

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

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

            case 7: this._status = (Energistics.Etp.v12.Datatypes.Object.ActiveStatusKind)fieldValue; break;

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

            case 9: this._axisVectorLengths = (IList <System.Int32>)fieldValue; break;

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

            case 11: this._attributeMetadata = (IList <Energistics.Etp.v12.Datatypes.AttributeMetadataRecord>)fieldValue; break;

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

            case 1: this._attributeName = (System.String)fieldValue; break;

            case 2: this._dataType = (Energistics.Etp.v12.Datatypes.DataValueType)fieldValue; break;

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

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