diff options
Diffstat (limited to 'dsa/FireBase/FirebaseObject.cs')
-rw-r--r-- | dsa/FireBase/FirebaseObject.cs | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/dsa/FireBase/FirebaseObject.cs b/dsa/FireBase/FirebaseObject.cs new file mode 100644 index 0000000..2e0fd20 --- /dev/null +++ b/dsa/FireBase/FirebaseObject.cs @@ -0,0 +1,27 @@ +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) + { + Key = key; + 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; } + } +}
\ No newline at end of file |