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 /DSACore/FireBase | |
parent | 04912687127303fd270b61f131cf68fd4aaae956 (diff) |
added firebase api
Diffstat (limited to 'DSACore/FireBase')
-rw-r--r-- | DSACore/FireBase/Database.cs | 24 |
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) + }); + } + } +} |