chore: UpdatedKeys

oneRain 2021-03-22 15:39:14 +08:00
parent f52f1d7e81
commit b5980c839c
1 changed files with 11 additions and 0 deletions

View File

@ -1,5 +1,7 @@
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using LeanCloud.Storage.Internal.Operation;
namespace LeanCloud.Storage {
@ -43,5 +45,14 @@ namespace LeanCloud.Storage {
LCIgnoreHookOperation op = new LCIgnoreHookOperation(hooks);
ApplyOperation(IgnoreHooksKey, op);
}
public ReadOnlyCollection<string> UpdatedKeys {
get {
return (this["_updatedKeys"] as List<object>)
.Cast<string>()
.ToList()
.AsReadOnly();
}
}
}
}