in src/Amazon.Extensions.CognitoAuthentication/CognitoDevice.cs [83:106]
public CognitoDevice(string deviceKey,
IDictionary<string, string> deviceAttributes,
DateTime createDate,
DateTime lastModified,
DateTime lastAuthenticated,
CognitoUser user)
{
if (deviceKey == null)
{
throw new ArgumentNullException(nameof(deviceKey));
}
if(deviceAttributes == null)
{
throw new ArgumentNullException(nameof(deviceAttributes));
}
this.DeviceKey = deviceKey;
this.DeviceAttributes = new Dictionary<string,string>(deviceAttributes);
this.CreateDate = createDate;
this.LastModified = lastModified;
this.LastAuthenticated = lastAuthenticated;
this.User = user;
}