public Builder Update(string bucket, string collection, string record, List <TStorageUpdate.Types.StorageUpdate.Types.UpdateOp> ops) { var update = new TStorageUpdate.Types.StorageUpdate { Key = new TStorageUpdate.Types.StorageUpdate.Types.StorageKey { Bucket = bucket, Collection = collection, Record = record }, Ops = { ops } }; message.payload.StorageUpdate.Updates.Add(update); return(this); }
public Builder Update(string bucket, string collection, string record, string version, StoragePermissionRead readPermission, StoragePermissionWrite writePermission, List <TStorageUpdate.Types.StorageUpdate.Types.UpdateOp> ops) { var update = new TStorageUpdate.Types.StorageUpdate { Key = new TStorageUpdate.Types.StorageUpdate.Types.StorageKey { Bucket = bucket, Collection = collection, Record = record, Version = version }, Ops = { ops }, PermissionRead = NStorageWriteMessage.GetReadPermission(readPermission), PermissionWrite = NStorageWriteMessage.GetWritePermission(writePermission), }; message.payload.StorageUpdate.Updates.Add(update); return(this); }