using System; using System.Collections.Generic; namespace Amazon.CognitoSync.SyncManager { /// /// A model class which stores a list of updated dataset. /// public class DatasetUpdates { private string _datasetName; private List _records; private long _syncCount; private string _syncSessionToken; private bool _exists; private bool _deleted; private List _mergedDatasetNameList; /// /// THe name representing the dataset. /// public string DatasetName { get { return this._datasetName; } } /// /// A flag which indicates if the dataset is deleted or not. /// public bool Deleted { get { return this._deleted; } } /// /// A flag indicating if the dataset exists. /// public bool Exists { get { return this._exists; } } /// /// A list of dataset names which are merged. /// public List MergedDatasetNameList { get { return _mergedDatasetNameList; } } /// /// A list of records. /// public List Records { get { return this._records; } } /// /// The count of number of times the dataset is synchronized. /// public long SyncCount { get { return this._syncCount; } } /// /// /// public string SyncSessionToken { get { return this._syncSessionToken; } } /// /// /// /// /// /// /// /// /// /// public DatasetUpdates(string datasetName, List records, long syncCount, string syncSessionToken, bool exists, bool deleted, List mergedDatasetNameList) { this._datasetName = datasetName; this._records = records; this._syncCount = syncCount; this._syncSessionToken = syncSessionToken; this._exists = exists; this._deleted = deleted; this._mergedDatasetNameList = mergedDatasetNameList; } } }