public Record ( string key, string value, long syncCount, System.DateTime lastModifiedDate, string lastModifiedBy, System.DateTime deviceLastModifiedDate, bool modified ) : System | ||
key | string | The key representing the record |
value | string | The value for the record |
syncCount | long | THe number of times this record has been synchronized |
lastModifiedDate | System.DateTime | The last time the record was modified in UTC |
lastModifiedBy | string | |
deviceLastModifiedDate | System.DateTime | |
modified | bool | Flag indicating the record was modified |
return | System |
public Record(string key, string value, long syncCount, DateTime? lastModifiedDate, string lastModifiedBy, DateTime? deviceLastModifiedDate, bool modified)
{
if (string.IsNullOrEmpty(key))
{
throw new ArgumentNullException("key");
}
this._key = key;
this._value = value;
this._syncCount = syncCount;
this._lastModifiedDate = lastModifiedDate != null ? DatasetUtils.TruncateToSeconds(lastModifiedDate.Value.ToUniversalTime()) : lastModifiedDate;
this._lastModifiedBy = lastModifiedBy;
this._deviceLastModifiedDate = deviceLastModifiedDate != null ? DatasetUtils.TruncateToSeconds(deviceLastModifiedDate.Value.ToUniversalTime()) : deviceLastModifiedDate;
this._modified = modified;
}