예제 #1
0
 private static Record ModelToRecord(Amazon.CognitoSync.Model.Record model)
 {
     return(new Record(
                model.Key,
                model.Value,
                model.SyncCount,
                model.LastModifiedDate,
                model.LastModifiedBy,
                model.DeviceLastModifiedDate,
                false));
 }
 private RecordPatch RecordToPatch(Record record)
 {
     RecordPatch patch = new RecordPatch();
     patch.Key = record.Key;
     patch.Value = record.Value;
     patch.SyncCount = record.SyncCount;
     patch.Op = (record.Value == null ? Operation.Remove : Operation.Replace);
     return patch;
 }