1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-16 16:23:29 +00:00
Files
mobile/src/App/Models/Api/Request/DeviceRequest.cs
2017-10-09 23:45:23 -04:00

24 lines
669 B
C#

using Bit.App.Abstractions;
using Bit.App.Enums;
using Xamarin.Forms;
namespace Bit.App.Models.Api
{
public class DeviceRequest
{
public DeviceRequest() { }
public DeviceRequest(IAppIdService appIdService, IDeviceInfoService deviceInfoService)
{
Identifier = appIdService.AppId;
Name = deviceInfoService.Model;
Type = Device.RuntimePlatform == Device.Android ? DeviceType.Android : DeviceType.iOS;
}
public DeviceType Type { get; set; }
public string Name { get; set; }
public string Identifier { get; set; }
public string PushToken { get; set; }
}
}