1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-20 02:03:49 +00:00

view page card and identity info

This commit is contained in:
Kyle Spearrin
2019-04-29 10:20:29 -04:00
parent b7d87486a8
commit 134a4ec5d2
5 changed files with 282 additions and 19 deletions

View File

@@ -125,5 +125,21 @@ namespace Bit.Core.Models.View
return address;
}
}
public string FullAddressPart2
{
get
{
if(string.IsNullOrWhiteSpace(City) && string.IsNullOrWhiteSpace(State) &&
string.IsNullOrWhiteSpace(PostalCode))
{
return null;
}
var city = string.IsNullOrWhiteSpace(City) ? "-" : City;
var state = string.IsNullOrWhiteSpace(State) ? "-" : State;
var postalCode = string.IsNullOrWhiteSpace(PostalCode) ? "-" : PostalCode;
return string.Format("{0}, {1}, {2}", city, state, postalCode);
}
}
}
}