AccountContact comments.
This commit is contained in:
@@ -13,10 +13,27 @@ namespace Wino.Core.Domain.Entities
|
|||||||
// Do it.
|
// Do it.
|
||||||
public class AccountContact : IEquatable<AccountContact>
|
public class AccountContact : IEquatable<AccountContact>
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// E-mail address of the contact.
|
||||||
|
/// </summary>
|
||||||
[PrimaryKey]
|
[PrimaryKey]
|
||||||
public string Address { get; set; }
|
public string Address { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Display name of the contact.
|
||||||
|
/// </summary>
|
||||||
public string Name { get; set; }
|
public string Name { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Base64 encoded profile image of the contact.
|
||||||
|
/// </summary>
|
||||||
public string Base64ContactPicture { get; set; }
|
public string Base64ContactPicture { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// All registered accounts have their contacts registered as root.
|
||||||
|
/// Root contacts must not be overridden by any configuration.
|
||||||
|
/// They are created on account creation.
|
||||||
|
/// </summary>
|
||||||
public bool IsRootContact { get; set; }
|
public bool IsRootContact { get; set; }
|
||||||
|
|
||||||
public string DisplayName => Address == Name ? Address : $"{Name} <{Address}>";
|
public string DisplayName => Address == Name ? Address : $"{Name} <{Address}>";
|
||||||
|
|||||||
Reference in New Issue
Block a user