Skip to content

Instantly share code, notes, and snippets.

@Recodify
Created March 29, 2019 21:46
Show Gist options
  • Save Recodify/21ce57708f5ebdecb15034c8d2055c3a to your computer and use it in GitHub Desktop.
Save Recodify/21ce57708f5ebdecb15034c8d2055c3a to your computer and use it in GitHub Desktop.
// ------------------------------------------------------------------------------
// <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