private void CopyFrom(IAzureUserAccountDisplayInfo azureUserAccountDisplayInfo) { this.AccountDisplayName = azureUserAccountDisplayInfo.AccountDisplayName; this.AccountLogo = azureUserAccountDisplayInfo.AccountLogo; this.ProviderDisplayName = azureUserAccountDisplayInfo.ProviderDisplayName; this.ProviderLogo = azureUserAccountDisplayInfo.ProviderLogo; this.UserName = azureUserAccountDisplayInfo.UserName; }
/// <summary> /// Returns true if given user account equals this class /// </summary> public bool Equals(IAzureUserAccountDisplayInfo other) { return(other != null && ((other.AccountDisplayName == null && AccountDisplayName == null) || (other.AccountDisplayName != null && other.AccountDisplayName.Equals(AccountDisplayName))) && ((other.UserName == null && UserName == null) || (other.UserName != null && other.UserName.Equals(UserName)))); }
/// <summary> /// Creating the instance using <see cref="IAzureUserAccountDisplayInfo" /> /// </summary> public AzureUserAccountDisplayInfo(IAzureUserAccountDisplayInfo azureUserAccountDisplayInfo) { CopyFrom(azureUserAccountDisplayInfo); }