Generated by DocFX

Class Profile

UserInfo model which fully supports serialization, property changed notifications, backwards compatibility and error checking.

Inheritance
System.Object
Profile
Implements
IProfile
Namespace: ISynergy.Framework.Core.Models.Accounts
Assembly: ISynergy.Framework.Core.dll
Syntax
public class Profile : object, IProfile

Constructors

View Source

Profile(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 email
List<System.String> roles
List<System.String> modules
DateTimeOffset licenseExpration
System.Int32 licenseUsers
DateTime expiration

Properties

View Source

AccountDescription

Gets or sets the Account_Description property value.

Declaration
public string AccountDescription { get; }
Property Value
Type Description
System.String

The account description.

View Source

AccountId

Gets or sets the AccountId property value.

Declaration
public Guid AccountId { get; }
Property Value
Type Description
Guid

The account identifier.

View Source

CountryCode

Gets the country code.

Declaration
public string CountryCode { get; }
Property Value
Type Description
System.String
View Source

Email

Gets or sets the Email property value.

Declaration
public string Email { get; }
Property Value
Type Description
System.String

The email.

View Source

Expiration

Gets or sets the Expiration property value.

Declaration
public DateTime Expiration { get; }
Property Value
Type Description
DateTime

The expiration.

View Source

LicenseExpration

Gets or sets the License_Expration property value.

Declaration
public DateTimeOffset LicenseExpration { get; }
Property Value
Type Description
DateTimeOffset

The license expration.

View Source

LicenseUsers

Gets or sets the License_Users property value.

Declaration
public int LicenseUsers { get; }
Property Value
Type Description
System.Int32

The license users.

View Source

Modules

Gets or sets the Modules property value.

Declaration
public List<string> Modules { get; }
Property Value
Type Description
List<System.String>

The modules.

View Source

Roles

Gets or sets the Roles property value.

Declaration
public List<string> Roles { get; }
Property Value
Type Description
List<System.String>

The roles.

View Source

TimeZoneId

Gets or sets the TimeZoneId property value.

Declaration
public string TimeZoneId { get; }
Property Value
Type Description
System.String

The time zone identifier.

View Source

Token

Gets or sets the Token property value.

Declaration
public Token Token { get; }
Property Value
Type Description
Token

The token.

View Source

UserId

Gets or sets the UserId property value.

Declaration
public Guid UserId { get; }
Property Value
Type Description
Guid

The user identifier.

View Source

Username

Gets or sets the Username property value.

Declaration
public string Username { get; }
Property Value
Type Description
System.String

The username.

Methods

View Source

IsAuthenticated()

Gets or sets the IsAuthenticated property value.

Declaration
public bool IsAuthenticated()
Returns
Type Description
System.Boolean

true if this instance is authenticated; otherwise, false.

View Source

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

true if [is in role] [the specified role]; otherwise, false.

Implements

IProfile

Extension Methods

Matrix.Replace<T>(T, Object, Object)
Matrix.IsEqual(Object, Object, Decimal, Decimal)
EntityBaseExtensions.HasProperty(Object, String)
ArrayExtensions.Concatenate<T>(T, T[])
CollectionExtensions.FromHierarchy<TSource>(TSource, Func<TSource, TSource>, Func<TSource, Boolean>)
CollectionExtensions.FromHierarchy<TSource>(TSource, Func<TSource, TSource>)
ObjectExtensions.Clone<T>(T)
ObjectExtensions.To<T>(Object)
ObjectExtensions.To(Object, Type)
ObjectExtensions.HasMethod(Object, String)
ObjectExtensions.AddressOf<T>(T)
ReflectionExtensions.GetIdentityValue<T>(T)
ReflectionExtensions.GetIdentityValue<T, TResult>(T)
ReflectionExtensions.GetIdentityProperty<T>(T)
ReflectionExtensions.HasIdentityProperty<T>(T)
ReflectionExtensions.GetPropertyValue<T, TResult>(T, String, TResult)
ReflectionExtensions.GetPropertyInfo<T, TValue>(T, Expression<Func<T, TValue>>)
ReflectionExtensions.GetTitleValue<T>(T)
ReflectionExtensions.HasParentIdentityProperty<T>(T)
ReflectionExtensions.GetParentIdentityProperty<T>(T)
ReflectionExtensions.IsFreeApplication<T>(T)