add support for Device-Type header

This commit is contained in:
Kyle Spearrin 2017-12-15 09:48:25 -05:00
parent 8571755daa
commit d395115cc9

View file

@ -1,6 +1,8 @@
using System.Net.Http;
using System.Text;
using Bit.App.Abstractions;
using Bit.App.Enums;
using Bit.App.Utilities;
using Newtonsoft.Json;
using XLabs.Ioc;
@ -21,6 +23,9 @@ namespace Bit.App
{
Headers.Add("Device-Identifier", appIdService.AppId);
}
Headers.Add("Device-Type", ((int)Helpers.OnPlatform(iOS: DeviceType.iOS,
Android: DeviceType.Android, Windows: DeviceType.UWP)).ToString());
}
public TokenHttpRequestMessage(object requestObject)