コード例 #1
0
 public IObservable <Unit> Add(IEnumerable <T> items)
 {
     // Doesn't work offline. Need offline solution.
     return(_baseQuery
            .PatchAsync(items.ToDictionary(x => x.Id = FirebaseKeyGenerator.Next()))
            .ToObservable()
            .SelectMany(_realtimeDb.PullAsync().ToObservable()));
 }
コード例 #2
0
 /// <inheritdoc/>
 public IObservable <Unit> Add(IEnumerable <T> items)
 {
     return(_childQuery
            .PatchAsync(items.ToDictionary(_ => FirebaseKeyGenerator.Next()))
            .ToObservable());
 }