Exemplo n.º 1
0
 /// <summary>
 /// The build url parameter.
 /// </summary>
 /// <param name="child"> The child. </param>
 /// <returns> The <see cref="string"/>. </returns>
 protected abstract string BuildUrlParameter(FirebaseQuery child);
Exemplo n.º 2
0
 /// <summary>
 /// Build the url segment represented by this query.
 /// </summary>
 /// <param name="child"> The child. </param>
 /// <returns> The <see cref="string"/>. </returns>
 protected override string BuildUrlSegment(FirebaseQuery child)
 {
     return($"{this.separator}{this.parameterFactory()}={this.BuildUrlParameter(child)}");
 }
Exemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FirebaseQuery"/> class.
 /// </summary>
 /// <param name="parent"> The parent of this query. </param>
 /// <param name="client"> The owning client. </param>
 protected FirebaseQuery(FirebaseQuery parent, FirebaseClient client)
 {
     this.Client = client;
     this.Parent = parent;
 }
Exemplo n.º 4
0
 /// <summary>
 /// 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>
 /// <param name="client"> The owning client. </param>
 protected ParameterQuery(FirebaseQuery parent, Func <string> parameterFactory, FirebaseClient client)
     : base(parent, client)
 {
     this.parameterFactory = parameterFactory;
     this.separator        = (this.Parent is ChildQuery) ? "?" : "&";
 }
Exemplo n.º 5
0
 /// <summary>
 /// Build the url segment of this child.
 /// </summary>
 /// <param name="child"> The child of this query. </param>
 /// <returns> The <see cref="string"/>. </returns>
 protected abstract string BuildUrlSegment(FirebaseQuery child);