C# Класс EGSW.Data.Customers.CustomerExtensions

Показать файл Открыть проект

Открытые методы

Метод Описание
IsAdmin ( this customer, bool onlyActiveCustomerRoles = true ) : bool

Gets a value indicating whether the customer is a built-in record for background tasks

Gets a value indicating whether customer is administrator

IsAgent ( this customer, bool onlyActiveCustomerRoles = true ) : bool
IsForumModerator ( this customer, bool onlyActiveCustomerRoles = true ) : bool

Gets a value indicating whether customer is a forum moderator

IsGuest ( this customer, bool onlyActiveCustomerRoles = true ) : bool

Gets a value indicating whether customer is guest

IsInCustomerRole ( this customer, string customerRoleSystemName, bool onlyActiveCustomerRoles = true ) : bool

Gets a value indicating whether customer is in a certain customer role

IsPasswordRecoveryTokenValid ( this customer, string token ) : bool
IsRegistered ( this customer, bool onlyActiveCustomerRoles = true ) : bool

Gets a value indicating whether customer is registered

IsSearchEngineAccount ( this customer ) : bool

Gets a value indicating whether customer a search engine

RemoveAddress ( this customer, Address address ) : void

Описание методов

IsAdmin() публичный статический Метод

Gets a value indicating whether the customer is a built-in record for background tasks Gets a value indicating whether customer is administrator
public static IsAdmin ( this customer, bool onlyActiveCustomerRoles = true ) : bool
customer this Customer
onlyActiveCustomerRoles bool A value indicating whether we should look only in active customer roles
Результат bool

IsAgent() публичный статический Метод

public static IsAgent ( this customer, bool onlyActiveCustomerRoles = true ) : bool
customer this
onlyActiveCustomerRoles bool
Результат bool

IsForumModerator() публичный статический Метод

Gets a value indicating whether customer is a forum moderator
public static IsForumModerator ( this customer, bool onlyActiveCustomerRoles = true ) : bool
customer this Customer
onlyActiveCustomerRoles bool A value indicating whether we should look only in active customer roles
Результат bool

IsGuest() публичный статический Метод

Gets a value indicating whether customer is guest
public static IsGuest ( this customer, bool onlyActiveCustomerRoles = true ) : bool
customer this Customer
onlyActiveCustomerRoles bool A value indicating whether we should look only in active customer roles
Результат bool

IsInCustomerRole() публичный статический Метод

Gets a value indicating whether customer is in a certain customer role
public static IsInCustomerRole ( this customer, string customerRoleSystemName, bool onlyActiveCustomerRoles = true ) : bool
customer this Customer
customerRoleSystemName string Customer role system name
onlyActiveCustomerRoles bool A value indicating whether we should look only in active customer roles
Результат bool

IsPasswordRecoveryTokenValid() публичный статический Метод

public static IsPasswordRecoveryTokenValid ( this customer, string token ) : bool
customer this
token string
Результат bool

IsRegistered() публичный статический Метод

Gets a value indicating whether customer is registered
public static IsRegistered ( this customer, bool onlyActiveCustomerRoles = true ) : bool
customer this Customer
onlyActiveCustomerRoles bool A value indicating whether we should look only in active customer roles
Результат bool

IsSearchEngineAccount() публичный статический Метод

Gets a value indicating whether customer a search engine
public static IsSearchEngineAccount ( this customer ) : bool
customer this Customer
Результат bool

RemoveAddress() публичный статический Метод

public static RemoveAddress ( this customer, Address address ) : void
customer this
address Address
Результат void