public DatabaseRef(IDatabaseHttpClient httpClient, FirebaseSDKConfiguration configuration, string refPath, QueryBuilder queryBuilder) { if (string.IsNullOrWhiteSpace(refPath)) { throw new ArgumentNullException(nameof(refPath)); } Path = queryBuilder != null ? $"{refPath.TrimSlashes()}.json?{queryBuilder.ToQueryString()}" : $"{refPath.TrimSlashes()}.json"; HttpClient = httpClient; }
public DatabaseRef(IDatabaseHttpClient httpClient, FirebaseSDKConfiguration configuration, string refPath) { if (string.IsNullOrWhiteSpace(refPath)) { throw new ArgumentNullException(nameof(refPath)); } Path = $"{refPath.TrimSlashes()}.json"; HttpClient = httpClient; }
public FirebaseDatabase(IServiceAccountCredentials credentials, FirebaseSDKConfiguration configuration) { _configuration = configuration; _httpClient = new DatabaseHttpClient(credentials, configuration); }