Last active
April 21, 2016 11:29
-
-
Save AndreiEzhov/2bc630181adbd5c59971ae4cdf217ce7 to your computer and use it in GitHub Desktop.
Firebase server timestamp
This file contains 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
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