Skip to content

Instantly share code, notes, and snippets.

@AndreiEzhov
Last active April 21, 2016 11:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AndreiEzhov/2bc630181adbd5c59971ae4cdf217ce7 to your computer and use it in GitHub Desktop.
Save AndreiEzhov/2bc630181adbd5c59971ae4cdf217ce7 to your computer and use it in GitHub Desktop.
Firebase server timestamp
class ServerValue {
[JsonProperty(".sv")]
public string Value {get; set;}
}
class TimestampedObject
{
public TimestampedObject()
{
this.Timestamp = new ServerValue {
Value = "timestamp"
};
}
public ServerValue Timestamp { get; set; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment