C# Class Kreyos.Classes.Managers.DatabaseManager

Show file Open project: kreyosopensource/KreyosWP

Public Properties

Property Type Description
DB_NAME string
KREYOS_USER_ACTIVITIES string
KREYOS_USER_PROFILE string

Public Methods

Method Description
DeleteActivities ( ) : void
DeleteActivity ( int p_epoch ) : void
Init ( string p_user ) : void
InsertActivity ( Kreyos_User_Activities p_activity ) : void
ReadActivities ( ) : ObservableCollection
ReadActivity ( uint p_epoch ) : Kreyos_User_Activities
SaveUserAct ( List p_acts ) : void
UpdateActivity ( Kreyos_User_Activities p_activity ) : void

Private Methods

Method Description
CheckFileExists ( string p_fileName ) : Task
DatabaseManager ( ) : System
OnCreate ( string p_dbPath, string p_dbName ) : Task

Method Details

DeleteActivities() public method

public DeleteActivities ( ) : void
return void

DeleteActivity() public method

public DeleteActivity ( int p_epoch ) : void
p_epoch int
return void

Init() public method

public Init ( string p_user ) : void
p_user string
return void

InsertActivity() public method

public InsertActivity ( Kreyos_User_Activities p_activity ) : void
p_activity Kreyos.Classes.DBTables.Kreyos_User_Activities
return void

ReadActivities() public method

public ReadActivities ( ) : ObservableCollection
return ObservableCollection

ReadActivity() public method

public ReadActivity ( uint p_epoch ) : Kreyos_User_Activities
p_epoch uint
return Kreyos.Classes.DBTables.Kreyos_User_Activities

SaveUserAct() public method

public SaveUserAct ( List p_acts ) : void
p_acts List
return void

UpdateActivity() public method

public UpdateActivity ( Kreyos_User_Activities p_activity ) : void
p_activity Kreyos.Classes.DBTables.Kreyos_User_Activities
return void

Property Details

DB_NAME public static property

public static string DB_NAME
return string

KREYOS_USER_ACTIVITIES public static property

The following keys are the actual table name
public static string KREYOS_USER_ACTIVITIES
return string

KREYOS_USER_PROFILE public static property

public static string KREYOS_USER_PROFILE
return string