Class AppUserData
App user data manager.
Inherited Members
Namespace: EduCATS.Data.User
Assembly: EduCATS.dll
Syntax
public class AppUserData
  Properties
Avatar
User profile image.
Declaration
public static string Avatar { get; set; }
  Property Value
| Type | Description | 
|---|---|
| string | 
Remarks
Represented in base64 string.
GroupId
User group ID.
Declaration
public static int GroupId { get; set; }
  Property Value
| Type | Description | 
|---|---|
| int | 
GroupName
User group.
Declaration
public static string GroupName { get; set; }
  Property Value
| Type | Description | 
|---|---|
| string | 
IsProfileLoaded
Is SetProfileData(UserProfileModel) was called.
Declaration
public static bool IsProfileLoaded { get; set; }
  Property Value
| Type | Description | 
|---|---|
| bool | 
Name
User full name.
Declaration
public static string Name { get; set; }
  Property Value
| Type | Description | 
|---|---|
| string | 
UserId
User ID.
Declaration
public static int UserId { get; set; }
  Property Value
| Type | Description | 
|---|---|
| int | 
UserType
User type.
Declaration
public static UserTypeEnum UserType { get; set; }
  Property Value
| Type | Description | 
|---|---|
| UserTypeEnum | 
Username
Username.
Declaration
public static string Username { get; set; }
  Property Value
| Type | Description | 
|---|---|
| string | 
Methods
Clear()
Reset app user manager.
Declaration
public static void Clear()
  SetLoginData(IPlatformServices, int, string)
Set login data.
Declaration
public static void SetLoginData(IPlatformServices services, int userId, string username)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IPlatformServices | services | Platfrom services.  | 
      
| int | userId | User ID.  | 
      
| string | username | Username.  | 
      
SetProfileData(IPlatformServices, UserProfileModel)
Set profile data.
Declaration
public static void SetProfileData(IPlatformServices services, UserProfileModel profile)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IPlatformServices | services | Platfrom services.  | 
      
| UserProfileModel | profile | Profile model.  |