summaryrefslogtreecommitdiff
path: root/DSACore/FireBase
diff options
context:
space:
mode:
Diffstat (limited to 'DSACore/FireBase')
-rw-r--r--DSACore/FireBase/Database.cs24
1 files changed, 24 insertions, 0 deletions
diff --git a/DSACore/FireBase/Database.cs b/DSACore/FireBase/Database.cs
new file mode 100644
index 0000000..cd21c00
--- /dev/null
+++ b/DSACore/FireBase/Database.cs
@@ -0,0 +1,24 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Threading.Tasks;
+using Firebase.Database;
+using Firebase.Database.Query;
+
+
+namespace DSACore.FireBase
+{
+ public static class Database
+ {
+ static Database()
+ {
+ var auth = "ABCDE"; // your app secret
+ var firebaseClient = new FirebaseClient(
+ "<URL>",
+ new FirebaseOptions
+ {
+ AuthTokenAsyncFactory = () => Task.FromResult(auth)
+ });
+ }
+ }
+}