summaryrefslogtreecommitdiff
path: root/FireBase/Offline/SetHandler.cs
diff options
context:
space:
mode:
Diffstat (limited to 'FireBase/Offline/SetHandler.cs')
-rw-r--r--FireBase/Offline/SetHandler.cs19
1 files changed, 0 insertions, 19 deletions
diff --git a/FireBase/Offline/SetHandler.cs b/FireBase/Offline/SetHandler.cs
deleted file mode 100644
index 6314c3c..0000000
--- a/FireBase/Offline/SetHandler.cs
+++ /dev/null
@@ -1,19 +0,0 @@
-using System.Threading.Tasks;
-using Firebase.Database.Query;
-
-namespace Firebase.Database.Offline
-{
- public class SetHandler<T> : ISetHandler<T>
- {
- public virtual async Task SetAsync(ChildQuery query, string key, OfflineEntry entry)
- {
- using (var child = query.Child(key))
- {
- if (entry.SyncOptions == SyncOptions.Put)
- await child.PutAsync(entry.Data);
- else
- await child.PatchAsync(entry.Data);
- }
- }
- }
-} \ No newline at end of file