Created
March 29, 2019 21:46
-
-
Save Recodify/21ce57708f5ebdecb15034c8d2055c3a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ------------------------------------------------------------------------------ | |
// <auto-generated> | |
//Generated by avrogen, version 1.7.7.5 | |
//Changes to this file may cause incorrect behavior and will be lost if code | |
//is regenerated | |
// </auto-generated> | |
// ------------------------------------------------------------------------------ | |
namespace homelync | |
{ | |
using System; | |
using System.Collections.Generic; | |
using System.Text; | |
using global::Avro; | |
using global::Avro.Specific; | |
public partial class Reading : ISpecificRecord | |
{ | |
public static Schema _SCHEMA = Schema.Parse(@"{""type"": ""record"",""name"": ""reading"",""fields"": [{""name"": ""collectionDate"",""type"": {""type"": ""long"",""connect.version"": 1,""connect.name"": ""org.apache.kafka.connect.data.Timestamp"",""logicalType"": ""timestamp-millis""}}],""connect.name"": ""reading""}"); | |
private long _collectionDate; | |
public virtual Schema Schema | |
{ | |
get | |
{ | |
return Reading._SCHEMA; | |
} | |
} | |
public long collectionDate | |
{ | |
get | |
{ | |
return this._collectionDate; | |
} | |
set | |
{ | |
this._collectionDate = value; | |
} | |
} | |
public virtual object Get(int fieldPos) | |
{ | |
switch (fieldPos) | |
{ | |
case 0: return this.collectionDate; | |
default: throw new AvroRuntimeException("Bad index " + fieldPos + " in Get()"); | |
}; | |
} | |
public virtual void Put(int fieldPos, object fieldValue) | |
{ | |
switch (fieldPos) | |
{ | |
case 0: this.collectionDate = (System.Int64)fieldValue; break; | |
default: throw new AvroRuntimeException("Bad index " + fieldPos + " in Put()"); | |
}; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment