summaryrefslogtreecommitdiff
path: root/FireBase/FirebaseClient.cs
diff options
context:
space:
mode:
authorDennis Kobert <d-kobert@web.de>2019-05-19 16:03:38 +0200
committerDennis Kobert <d-kobert@web.de>2019-05-19 16:03:38 +0200
commitf89f308c525e9deebc6d2cf6416e27dfe1a299dc (patch)
tree7097ef871ead0245efda696198443eab8e443d3a /FireBase/FirebaseClient.cs
parentf3983341be939235c1a6cd522b3bb5cc318a6d1a (diff)
Cleanup DiscoBot Project
Diffstat (limited to 'FireBase/FirebaseClient.cs')
-rw-r--r--FireBase/FirebaseClient.cs18
1 files changed, 7 insertions, 11 deletions
diff --git a/FireBase/FirebaseClient.cs b/FireBase/FirebaseClient.cs
index a237c8d..8795668 100644
--- a/FireBase/FirebaseClient.cs
+++ b/FireBase/FirebaseClient.cs
@@ -7,9 +7,8 @@ namespace Firebase.Database
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
-
- using Firebase.Database.Offline;
- using Firebase.Database.Query;
+ using Offline;
+ using Query;
/// <summary>
/// Firebase client which acts as an entry point to the online database.
@@ -28,15 +27,12 @@ namespace Firebase.Database
/// <param name="offlineDatabaseFactory"> Offline database. </param>
public FirebaseClient(string baseUrl, FirebaseOptions options = null)
{
- this.HttpClient = new HttpClient();
- this.Options = options ?? new FirebaseOptions();
+ HttpClient = new HttpClient();
+ Options = options ?? new FirebaseOptions();
this.baseUrl = baseUrl;
- if (!this.baseUrl.EndsWith("/"))
- {
- this.baseUrl += "/";
- }
+ if (!this.baseUrl.EndsWith("/")) this.baseUrl += "/";
}
/// <summary>
@@ -46,7 +42,7 @@ namespace Firebase.Database
/// <returns> <see cref="ChildQuery"/>. </returns>
public ChildQuery Child(string resourceName)
{
- return new ChildQuery(this, () => this.baseUrl + resourceName);
+ return new ChildQuery(this, () => baseUrl + resourceName);
}
public void Dispose()
@@ -54,4 +50,4 @@ namespace Firebase.Database
HttpClient?.Dispose();
}
}
-}
+} \ No newline at end of file