1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-21 18:53:29 +00:00

set custom environment urls from home page

This commit is contained in:
Kyle Spearrin
2017-08-23 11:40:40 -04:00
parent 158bf873bd
commit b5107d21dd
22 changed files with 764 additions and 782 deletions

View File

@@ -85,5 +85,59 @@ namespace Bit.App.Services
_settings.AddOrUpdateValue(Constants.SecurityStamp, value);
}
}
public string BaseUrl
{
get
{
return _settings.GetValueOrDefault<string>(Constants.BaseUrl);
}
set
{
if(value == null)
{
_settings.Remove(Constants.BaseUrl);
return;
}
_settings.AddOrUpdateValue(Constants.BaseUrl, value);
}
}
public string ApiUrl
{
get
{
return _settings.GetValueOrDefault<string>(Constants.ApiUrl);
}
set
{
if(value == null)
{
_settings.Remove(Constants.ApiUrl);
return;
}
_settings.AddOrUpdateValue(Constants.ApiUrl, value);
}
}
public string IdentityUrl
{
get
{
return _settings.GetValueOrDefault<string>(Constants.IdentityUrl);
}
set
{
if(value == null)
{
_settings.Remove(Constants.IdentityUrl);
return;
}
_settings.AddOrUpdateValue(Constants.IdentityUrl, value);
}
}
}
}