Class Profile
UserInfo model which fully supports serialization, property changed notifications, backwards compatibility and error checking.
Inheritance
Implements
Namespace: ISynergy.Framework.Core.Models.Accounts
Assembly: ISynergy.Framework.Core.dll
Syntax
public class Profile : object, IProfile
Constructors
View SourceProfile(Token, Guid, String, String, String, Guid, String, String, List<String>, List<String>, DateTimeOffset, Int32, DateTime)
Declaration
public Profile(Token token, Guid accountId, string accountDescription, string timeZoneId, string countryCode, Guid userId, string username, string email, List<string> roles, List<string> modules, DateTimeOffset licenseExpration, int licenseUsers, DateTime expiration)
Parameters
Type | Name | Description |
---|---|---|
Token | token | |
Guid | accountId | |
System.String | accountDescription | |
System.String | timeZoneId | |
System.String | countryCode | |
Guid | userId | |
System.String | username | |
System.String | ||
List<System.String> | roles | |
List<System.String> | modules | |
DateTimeOffset | licenseExpration | |
System.Int32 | licenseUsers | |
DateTime | expiration |
Properties
View SourceAccountDescription
Gets or sets the Account_Description property value.
Declaration
public string AccountDescription { get; }
Property Value
Type | Description |
---|---|
System.String | The account description. |
AccountId
Gets or sets the AccountId property value.
Declaration
public Guid AccountId { get; }
Property Value
Type | Description |
---|---|
Guid | The account identifier. |
CountryCode
Gets the country code.
Declaration
public string CountryCode { get; }
Property Value
Type | Description |
---|---|
System.String |
Gets or sets the Email property value.
Declaration
public string Email { get; }
Property Value
Type | Description |
---|---|
System.String | The email. |
Expiration
Gets or sets the Expiration property value.
Declaration
public DateTime Expiration { get; }
Property Value
Type | Description |
---|---|
DateTime | The expiration. |
LicenseExpration
Gets or sets the License_Expration property value.
Declaration
public DateTimeOffset LicenseExpration { get; }
Property Value
Type | Description |
---|---|
DateTimeOffset | The license expration. |
LicenseUsers
Gets or sets the License_Users property value.
Declaration
public int LicenseUsers { get; }
Property Value
Type | Description |
---|---|
System.Int32 | The license users. |
Modules
Gets or sets the Modules property value.
Declaration
public List<string> Modules { get; }
Property Value
Type | Description |
---|---|
List<System.String> | The modules. |
Roles
Gets or sets the Roles property value.
Declaration
public List<string> Roles { get; }
Property Value
Type | Description |
---|---|
List<System.String> | The roles. |
TimeZoneId
Gets or sets the TimeZoneId property value.
Declaration
public string TimeZoneId { get; }
Property Value
Type | Description |
---|---|
System.String | The time zone identifier. |
Token
Gets or sets the Token property value.
Declaration
public Token Token { get; }
Property Value
Type | Description |
---|---|
Token | The token. |
UserId
Gets or sets the UserId property value.
Declaration
public Guid UserId { get; }
Property Value
Type | Description |
---|---|
Guid | The user identifier. |
Username
Gets or sets the Username property value.
Declaration
public string Username { get; }
Property Value
Type | Description |
---|---|
System.String | The username. |
Methods
View SourceIsAuthenticated()
Gets or sets the IsAuthenticated property value.
Declaration
public bool IsAuthenticated()
Returns
Type | Description |
---|---|
System.Boolean |
|
IsInRole(String)
Determines whether [is in role] [the specified role].
Declaration
public bool IsInRole(string role)
Parameters
Type | Name | Description |
---|---|---|
System.String | role | The role. |
Returns
Type | Description |
---|---|
System.Boolean |
|