diff options
Diffstat (limited to 'dsa/FireBase/Query/ChildQuery.cs')
-rw-r--r-- | dsa/FireBase/Query/ChildQuery.cs | 15 |
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 += '/'; |