summaryrefslogtreecommitdiff
path: root/FireBase/Query/ParameterQuery.cs
diff options
context:
space:
mode:
authornatrixaeria <janng@gmx.de>2019-05-19 17:40:59 +0200
committernatrixaeria <janng@gmx.de>2019-05-19 17:40:59 +0200
commit1509b5ef3d7e9e71d9294e234ec0e39f2d831998 (patch)
tree78300ffff230958101b422a4e6026925b287822f /FireBase/Query/ParameterQuery.cs
parentc3bb858bb54dc8c64bbd48054c2c58dc0073f09c (diff)
parentc4d046858e0822b7c2c540ac2368b2c0e88e7a26 (diff)
Merge branch 'scribble' of https://github.com/TrueDoctor/DiscoBot into scribble
Diffstat (limited to 'FireBase/Query/ParameterQuery.cs')
-rw-r--r--FireBase/Query/ParameterQuery.cs24
1 files changed, 12 insertions, 12 deletions
diff --git a/FireBase/Query/ParameterQuery.cs b/FireBase/Query/ParameterQuery.cs
index e3d9717..572224c 100644
--- a/FireBase/Query/ParameterQuery.cs
+++ b/FireBase/Query/ParameterQuery.cs
@@ -1,9 +1,9 @@
+using System;
+
namespace Firebase.Database.Query
{
- using System;
-
/// <summary>
- /// Represents a parameter in firebase query, e.g. "?data=foo".
+ /// Represents a parameter in firebase query, e.g. "?data=foo".
/// </summary>
public abstract class ParameterQuery : FirebaseQuery
{
@@ -11,7 +11,7 @@ namespace Firebase.Database.Query
private readonly string separator;
/// <summary>
- /// Initializes a new instance of the <see cref="ParameterQuery"/> class.
+ /// Initializes a new instance of the <see cref="ParameterQuery" /> class.
/// </summary>
/// <param name="parent"> The parent of this query. </param>
/// <param name="parameterFactory"> The parameter. </param>
@@ -20,24 +20,24 @@ namespace Firebase.Database.Query
: base(parent, client)
{
this.parameterFactory = parameterFactory;
- this.separator = (this.Parent is ChildQuery) ? "?" : "&";
+ separator = Parent is ChildQuery ? "?" : "&";
}
/// <summary>
- /// Build the url segment represented by this query.
- /// </summary>
+ /// Build the url segment represented by this query.
+ /// </summary>
/// <param name="child"> The child. </param>
- /// <returns> The <see cref="string"/>. </returns>
+ /// <returns> The <see cref="string" />. </returns>
protected override string BuildUrlSegment(FirebaseQuery child)
{
- return $"{this.separator}{this.parameterFactory()}={this.BuildUrlParameter(child)}";
+ return $"{separator}{parameterFactory()}={BuildUrlParameter(child)}";
}
/// <summary>
- /// The build url parameter.
+ /// The build url parameter.
/// </summary>
/// <param name="child"> The child. </param>
- /// <returns> The <see cref="string"/>. </returns>
+ /// <returns> The <see cref="string" />. </returns>
protected abstract string BuildUrlParameter(FirebaseQuery child);
}
-}
+} \ No newline at end of file