C# Class OakBot.DatabaseUtils

Afficher le fichier Open project: ocgineer/OakBot

Méthodes publiques

Свойство Type Description
fileCommands string
fileCurrency string
fileQuotes string
fileViewers string

Méthodes publiques

Méthode Description
AddAllViewers ( ) : void

Add all viewers to DBfile in colDatabase. Does not check if viewers already exists, make sure they don't prior calling.

AddQuote ( Quote newQuote ) : void

Add new quote to DBfile with specified Quote. Does not check if quote exists, make sure it doesn't prior calling.

AddViewer ( Viewer viewer ) : void

Add new viewer to DBfile with specified Viewer. Does not check if viewer exists, make sure it doesn't prior calling.

LoadAllQuotes ( ) : void

Load viewers from DBfile to colDatabase.

LoadAllViewers ( ) : void

Load viewers from DBfile to colDatabase.

RemoveAllViewers ( ) : void

Remove all viewers from DBfile

RemoveViewer ( Viewer viewer ) : void

Remove viewer from DBfile specified by Viewer. Does not check if viewer exists, make sure it does prior calling.

SaveAllQuotes ( ) : void

Save all quotes after deleting current entries in case of id change

UpdateAllViewers ( ) : void

Update all viewers in DBfile from colDatabase. Does not check if viewers exists, make sure they do prior calling.

UpdateViewer ( Viewer viewer ) : void

Update viewer in the DBfile with specified Viewer. Does not check if viewer exists, make sure it does prior calling.

Method Details

AddAllViewers() public static méthode

Add all viewers to DBfile in colDatabase. Does not check if viewers already exists, make sure they don't prior calling.
public static AddAllViewers ( ) : void
Résultat void

AddQuote() public static méthode

Add new quote to DBfile with specified Quote. Does not check if quote exists, make sure it doesn't prior calling.
public static AddQuote ( Quote newQuote ) : void
newQuote Quote The new quote to be added to the database
Résultat void

AddViewer() public static méthode

Add new viewer to DBfile with specified Viewer. Does not check if viewer exists, make sure it doesn't prior calling.
public static AddViewer ( Viewer viewer ) : void
viewer Viewer Viewer to be added
Résultat void

LoadAllQuotes() public static méthode

Load viewers from DBfile to colDatabase.
public static LoadAllQuotes ( ) : void
Résultat void

LoadAllViewers() public static méthode

Load viewers from DBfile to colDatabase.
public static LoadAllViewers ( ) : void
Résultat void

RemoveAllViewers() public static méthode

Remove all viewers from DBfile
public static RemoveAllViewers ( ) : void
Résultat void

RemoveViewer() public static méthode

Remove viewer from DBfile specified by Viewer. Does not check if viewer exists, make sure it does prior calling.
public static RemoveViewer ( Viewer viewer ) : void
viewer Viewer Viewer to be removed
Résultat void

SaveAllQuotes() public static méthode

Save all quotes after deleting current entries in case of id change
public static SaveAllQuotes ( ) : void
Résultat void

UpdateAllViewers() public static méthode

Update all viewers in DBfile from colDatabase. Does not check if viewers exists, make sure they do prior calling.
public static UpdateAllViewers ( ) : void
Résultat void

UpdateViewer() public static méthode

Update viewer in the DBfile with specified Viewer. Does not check if viewer exists, make sure it does prior calling.
public static UpdateViewer ( Viewer viewer ) : void
viewer Viewer Viewer to be updated
Résultat void

Property Details

fileCommands public_oe static_oe property

public static string fileCommands
Résultat string

fileCurrency public_oe static_oe property

public static string fileCurrency
Résultat string

fileQuotes public_oe static_oe property

public static string fileQuotes
Résultat string

fileViewers public_oe static_oe property

public static string fileViewers
Résultat string