C# Class OakBot.DatabaseUtils

ファイルを表示 Open project: ocgineer/OakBot

Public Properties

Property Type Description
fileCommands string
fileCurrency string
fileQuotes string
fileViewers string

Public Methods

Method 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 method

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
return void

AddQuote() public static method

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
return void

AddViewer() public static method

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
return void

LoadAllQuotes() public static method

Load viewers from DBfile to colDatabase.
public static LoadAllQuotes ( ) : void
return void

LoadAllViewers() public static method

Load viewers from DBfile to colDatabase.
public static LoadAllViewers ( ) : void
return void

RemoveAllViewers() public static method

Remove all viewers from DBfile
public static RemoveAllViewers ( ) : void
return void

RemoveViewer() public static method

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
return void

SaveAllQuotes() public static method

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

UpdateAllViewers() public static method

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

UpdateViewer() public static method

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
return void

Property Details

fileCommands public_oe static_oe property

public static string fileCommands
return string

fileCurrency public_oe static_oe property

public static string fileCurrency
return string

fileQuotes public_oe static_oe property

public static string fileQuotes
return string

fileViewers public_oe static_oe property

public static string fileViewers
return string