diff options
author | TrueDoctor <d-kobert@web.de> | 2018-09-29 16:51:26 +0200 |
---|---|---|
committer | TrueDoctor <d-kobert@web.de> | 2018-09-29 16:51:26 +0200 |
commit | de0f076ef9ff546c9a90513259ad6c42cd2224b3 (patch) | |
tree | 995d766417fd2093d7950694ef17f3c84b7f1042 /FireBase/FirebaseObject.cs | |
parent | 04912687127303fd270b61f131cf68fd4aaae956 (diff) |
added firebase api
Diffstat (limited to 'FireBase/FirebaseObject.cs')
-rw-r--r-- | FireBase/FirebaseObject.cs | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/FireBase/FirebaseObject.cs b/FireBase/FirebaseObject.cs new file mode 100644 index 0000000..ea61893 --- /dev/null +++ b/FireBase/FirebaseObject.cs @@ -0,0 +1,31 @@ +namespace Firebase.Database +{ + /// <summary> + /// Holds the object of type <typeparam name="T" /> along with its key. + /// </summary> + /// <typeparam name="T"> Type of the underlying object. </typeparam> + public class FirebaseObject<T> + { + internal FirebaseObject(string key, T obj) + { + this.Key = key; + this.Object = obj; + } + + /// <summary> + /// Gets the key of <see cref="Object"/>. + /// </summary> + public string Key + { + get; + } + + /// <summary> + /// Gets the underlying object. + /// </summary> + public T Object + { + get; + } + } +} |