summaryrefslogtreecommitdiff
path: root/dsa/FireBase/Query/ChildQuery.cs
diff options
context:
space:
mode:
authorDennis Kobert <d-kobert@web.de>2019-06-12 21:47:51 +0200
committerDennis Kobert <d-kobert@web.de>2019-06-12 21:47:51 +0200
commit304437b834e8c87687f68333ae67a13ee1377a73 (patch)
tree51dd246568e8a159627d9cb92e99890adb5cbef8 /dsa/FireBase/Query/ChildQuery.cs
parent2fa4a0e50ebfc97059c8b84dbd17e79f9afc8a8d (diff)
Adjust Codestyle
Diffstat (limited to 'dsa/FireBase/Query/ChildQuery.cs')
-rw-r--r--dsa/FireBase/Query/ChildQuery.cs15
1 files changed, 5 insertions, 10 deletions
diff --git a/dsa/FireBase/Query/ChildQuery.cs b/dsa/FireBase/Query/ChildQuery.cs
index 014fe09..579bd0a 100644
--- a/dsa/FireBase/Query/ChildQuery.cs
+++ b/dsa/FireBase/Query/ChildQuery.cs
@@ -1,12 +1,10 @@
using System;
-namespace Firebase.Database.Query
-{
+namespace Firebase.Database.Query {
/// <summary>
/// Firebase query which references the child of current node.
/// </summary>
- public class ChildQuery : FirebaseQuery
- {
+ public class ChildQuery : FirebaseQuery {
private readonly Func<string> pathFactory;
/// <summary>
@@ -16,8 +14,7 @@ namespace Firebase.Database.Query
/// <param name="pathFactory"> The path to the child node. </param>
/// <param name="client"> The owner. </param>
public ChildQuery(FirebaseQuery parent, Func<string> pathFactory, FirebaseClient client)
- : base(parent, client)
- {
+ : base(parent, client) {
this.pathFactory = pathFactory;
}
@@ -27,8 +24,7 @@ namespace Firebase.Database.Query
/// <param name="client"> The client. </param>
/// <param name="pathFactory"> The path to the child node. </param>
public ChildQuery(FirebaseClient client, Func<string> pathFactory)
- : this(null, pathFactory, client)
- {
+ : this(null, pathFactory, client) {
}
/// <summary>
@@ -36,8 +32,7 @@ namespace Firebase.Database.Query
/// </summary>
/// <param name="child"> The child of this child. </param>
/// <returns> The <see cref="string" />. </returns>
- protected override string BuildUrlSegment(FirebaseQuery child)
- {
+ protected override string BuildUrlSegment(FirebaseQuery child) {
var s = pathFactory();
if (s != string.Empty && !s.EndsWith("/")) s += '/';