private protected ParameterQuery(RestfulFirebaseApp app, FirebaseQuery parent, Func <string> parameterFactory) : base(app, parent) { this.parameterFactory = parameterFactory; separator = (Parent is ChildQuery) ? "?" : "&"; }
/// <inheritdoc/> protected override string BuildUrlSegment(FirebaseQuery child) { return($"{separator}{parameterFactory()}={BuildUrlParameter()}"); }
internal AuthQuery(RestfulFirebaseApp app, FirebaseQuery parent, Func <string> tokenFactory) : base(app, parent, () => app.Config.AsAccessToken ? "access_token" : "auth") { this.tokenFactory = tokenFactory; }