Skip to content

Commit

Permalink
add support for ApproximateArrivalTimestamp in KCL #11 (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
zdjohn authored and pfifer committed Jun 1, 2018
1 parent fbb4f7e commit 4c67dfd
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions ClientLibrary/ClientLibrary.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ public abstract class Record
/// </summary>
/// <value>The partition key.</value>
public abstract string PartitionKey { get; }

/// <summary>
/// The approximate time that the record was inserted into the stream
/// </summary>
/// <value>server-side timestamp</value>
public abstract double ApproximateArrivalTimestamp { get; }
}

/// <summary>
Expand Down Expand Up @@ -470,8 +476,13 @@ internal class DefaultRecord : Record
[DataMember(Name = "partitionKey")]
private string _partitionKey;

[DataMember(Name = "approximateArrivalTimestamp")]
private double _approximateArrivalTimestamp;

public override string PartitionKey { get { return _partitionKey; } }

public override double ApproximateArrivalTimestamp => _approximateArrivalTimestamp;

public override byte[] Data
{
get
Expand Down

0 comments on commit 4c67dfd

Please sign in to comment.