diff options
author | TrueKuehli <rctcoaster2000@hotmail.de> | 2018-10-07 12:05:11 +0200 |
---|---|---|
committer | TrueKuehli <rctcoaster2000@hotmail.de> | 2018-10-07 12:05:11 +0200 |
commit | 97f19926ac2b02e976c1abf993525b519d68ffac (patch) | |
tree | 60fb48ecf30b70530d6132711b331d66e33b3893 /FireBase/Query/FirebaseQuery.cs | |
parent | 3de6fb5d7bd28318d90975f016c9722a99ba2455 (diff) | |
parent | 373af0a9c563dcd6bfb5e136f75f23e48bfb961c (diff) |
Merge branch 'WebApi' of https://github.com/TrueDoctor/DiscoBot into WebApi
Diffstat (limited to 'FireBase/Query/FirebaseQuery.cs')
-rw-r--r-- | FireBase/Query/FirebaseQuery.cs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/FireBase/Query/FirebaseQuery.cs b/FireBase/Query/FirebaseQuery.cs index 0e1b84a..3513c85 100644 --- a/FireBase/Query/FirebaseQuery.cs +++ b/FireBase/Query/FirebaseQuery.cs @@ -66,6 +66,22 @@ namespace Firebase.Database.Query .ConfigureAwait(false); } + /*public async Task<IReadOnlyCollection<FirebaseObject<Object>>> OnceAsync(Type dataType, TimeSpan? timeout = null) + { + var url = string.Empty; + + try + { + url = await this.BuildUrlAsync().ConfigureAwait(false); + } + catch (Exception ex) + { + throw new FirebaseException("Couldn't build the url", string.Empty, string.Empty, HttpStatusCode.OK, ex); + } + + return await this.GetClient(timeout).GetObjectCollectionAsync(url, Client.Options.JsonSerializerSettings, dataType) + .ConfigureAwait(false); + }*/ /// <summary> /// Assumes given query is pointing to a single object of type <typeparamref name="T"/> and retrieves it. |