patbef-ServiceOutside/ServiceShared/Models/Database/Device.cs

62 lines
1.6 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ServiceShared.Models.Database
{
public class Device
{
/// <summary>
/// Type of mobile devices
/// </summary>
public enum DeviceTypes { NONE, IOS, ANDROID }
/// <summary>
/// PatHash id hashed internal pat id, that can be decrypted by serviceinside
/// </summary>
public string PatHash { get; set; }
/// <summary>
/// Unique id of mobile device
/// </summary>
public string UDID { get; set; }
/// <summary>
/// DeviceToken for notification service
/// </summary>
public string DeviceToken { get; set; }
/// <summary>
/// Type of mobile device
/// </summary>
public DeviceTypes DeviceType { get; set; }
/// <summary>
/// Public Key of mobile client
/// </summary>
public string ClientPublicKey { get; set; }
/// <summary>
/// Client verification hash
/// </summary>
public string VerificationHash { get; set; }
/// <summary>
/// Client PIN to reset password on the same device
/// </summary>
public string PIN { get; set; }
/// <summary>
/// Timestamp for modification
/// </summary>
public DateTime? Modified { get; set; }
/// <summary>
/// Created date of results object(this)
/// </summary>
public DateTime Created { get; set; }
}
}