/// <summary> /// Limits the result to last <see cref="countFactory"/> items. /// </summary> /// <param name="child"> Current node. </param> /// <param name="countFactory"> Number of elements. </param> /// <returns> The <see cref="FilterQuery"/>. </returns> public static FilterQuery LimitToLast(this ParameterQuery child, Func <int> countFactory) { return(new FilterQuery(child, () => "limitToLast", () => countFactory(), child.Client)); }
/// <summary> /// Instructs firebase to send data lower or equal to the <see cref="valueFactory"/>. This must be preceded by an OrderBy query. /// </summary> /// <param name="child"> Current node. </param> /// <param name="valueFactory"> Value to start at. </param> /// <returns> The <see cref="FilterQuery"/>. </returns> public static FilterQuery EndAt(this ParameterQuery child, Func <string> valueFactory) { return(new FilterQuery(child, () => "endAt", valueFactory, child.Client)); }
/// <summary> /// Instructs firebase to send data greater or equal to the <see cref="valueFactory"/>. This must be preceded by an OrderBy query. /// </summary> /// <param name="child"> Current node. </param> /// <param name="valueFactory"> Value to start at. </param> /// <returns> The <see cref="FilterQuery"/>. </returns> public static FilterQuery StartAt(this ParameterQuery child, Func <long> valueFactory) { return(new FilterQuery(child, () => "startAt", valueFactory, child.Client)); }
/// <summary> /// Instructs firebase to send data equal to the <see cref="valueFactory"/>. This must be preceded by an OrderBy query. /// </summary> /// <param name="child"> Current node. </param> /// <param name="valueFactory"> Value to start at. </param> /// <returns> The <see cref="FilterQuery"/>. </returns> public static FilterQuery EqualTo(this ParameterQuery child, Func <bool> valueFactory) { return(new FilterQuery(child, () => "equalTo", valueFactory, child.Client)); }
/// <summary> /// Instructs firebase to send data greater or equal to the <see cref="value"/>. This must be preceded by an OrderBy query. /// </summary> /// <param name="child"> Current node. </param> /// <param name="value"> Value to start at. </param> /// <returns> The <see cref="FilterQuery"/>. </returns> public static FilterQuery StartAt(this ParameterQuery child, double value) { return(child.StartAt(() => value)); }
/// <summary> /// Instructs firebase to send data equal to the <see cref="value"/>. This must be preceded by an OrderBy query. /// </summary> /// <param name="child"> Current node. </param> /// <param name="value"> Value to start at. </param> /// <returns> The <see cref="FilterQuery"/>. </returns> public static FilterQuery EqualTo(this ParameterQuery child, string value) { return(child.EqualTo(() => value)); }
/// <summary> /// Instructs firebase to send data lower or equal to the <see cref="value"/>. This must be preceded by an OrderBy query. /// </summary> /// <param name="child"> Current node. </param> /// <param name="value"> Value to start at. </param> /// <returns> The <see cref="FilterQuery"/>. </returns> public static FilterQuery EndAt(this ParameterQuery child, string value) { return(child.EndAt(() => value)); }
/// <summary> /// Limits the result to last <see cref="count"/> items. /// </summary> /// <param name="child"> Current node. </param> /// <param name="count"> Number of elements. </param> /// <returns> The <see cref="FilterQuery"/>. </returns> public static FilterQuery LimitToLast(this ParameterQuery child, int count) { return(child.LimitToLast(() => count)); }
/// <summary> /// Instructs firebase to send data equal to null. This must be preceded by an OrderBy query. /// </summary> /// <param name="child"> Current node. </param> /// <returns> The <see cref="FilterQuery"/>. </returns> public static FilterQuery EqualTo(this ParameterQuery child) { return(child.EqualTo(() => null)); }