summaryrefslogtreecommitdiff
path: root/dsa/FireBase/FirebaseObject.cs
diff options
context:
space:
mode:
authoruzvkl <dennis.kobert@student.kit.edu>2019-06-11 23:05:52 +0200
committeruzvkl <dennis.kobert@student.kit.edu>2019-06-11 23:05:52 +0200
commite6181c24124d97f2fbc932b8a68311e625463156 (patch)
treec1f097c344ca266b7941c9668590b0fd35c7870a /dsa/FireBase/FirebaseObject.cs
parent2490ad5d31fe2ac778ff9303776f0e91f47a2862 (diff)
Move dsa related stuff to subfolder
Diffstat (limited to 'dsa/FireBase/FirebaseObject.cs')
-rw-r--r--dsa/FireBase/FirebaseObject.cs27
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