Interface IProfile
Interface IProfile
Namespace: ISynergy.Framework.Core.Abstractions
Assembly: ISynergy.Framework.Core.dll
Syntax
public interface IProfile
Properties
View SourceAccountDescription
Gets the account description.
Declaration
string AccountDescription { get; }
Property Value
Type | Description |
---|---|
System.String | The account description. |
AccountId
Gets the account identifier.
Declaration
Guid AccountId { get; }
Property Value
Type | Description |
---|---|
Guid | The account identifier. |
CountryCode
Gets the country ISO2 code.
Declaration
string CountryCode { get; }
Property Value
Type | Description |
---|---|
System.String |
Gets the email.
Declaration
string Email { get; }
Property Value
Type | Description |
---|---|
System.String | The email. |
Expiration
Gets the expiration.
Declaration
DateTime Expiration { get; }
Property Value
Type | Description |
---|---|
DateTime | The expiration. |
LicenseExpration
Gets the license expration.
Declaration
DateTimeOffset LicenseExpration { get; }
Property Value
Type | Description |
---|---|
DateTimeOffset | The license expration. |
LicenseUsers
Gets the license users.
Declaration
int LicenseUsers { get; }
Property Value
Type | Description |
---|---|
System.Int32 | The license users. |
Modules
Gets the modules.
Declaration
List<string> Modules { get; }
Property Value
Type | Description |
---|---|
List<System.String> | The modules. |
Roles
Gets the roles.
Declaration
List<string> Roles { get; }
Property Value
Type | Description |
---|---|
List<System.String> | The roles. |
TimeZoneId
Gets the time zone identifier.
Declaration
string TimeZoneId { get; }
Property Value
Type | Description |
---|---|
System.String | The time zone identifier. |
Token
Gets the token.
Declaration
Token Token { get; }
Property Value
Type | Description |
---|---|
Token | The token. |
UserId
Gets the user identifier.
Declaration
Guid UserId { get; }
Property Value
Type | Description |
---|---|
Guid | The user identifier. |
Username
Gets the username.
Declaration
string Username { get; }
Property Value
Type | Description |
---|---|
System.String | The username. |
Methods
View SourceIsAuthenticated()
Gets a value indicating whether this instance is authenticated.
Declaration
bool IsAuthenticated()
Returns
Type | Description |
---|---|
System.Boolean |
|
IsInRole(String)
Determines whether [is in role] [the specified role].
Declaration
bool IsInRole(string role)
Parameters
Type | Name | Description |
---|---|---|
System.String | role | The role. |
Returns
Type | Description |
---|---|
System.Boolean |
|