C# Класс OakBot.DatabaseUtils

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
fileCommands string
fileCurrency string
fileQuotes string
fileViewers string

Открытые методы

Метод Описание
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.

Описание методов

AddAllViewers() публичный статический Метод

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
Результат void

AddQuote() публичный статический Метод

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
Результат void

AddViewer() публичный статический Метод

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
Результат void

LoadAllQuotes() публичный статический Метод

Load viewers from DBfile to colDatabase.
public static LoadAllQuotes ( ) : void
Результат void

LoadAllViewers() публичный статический Метод

Load viewers from DBfile to colDatabase.
public static LoadAllViewers ( ) : void
Результат void

RemoveAllViewers() публичный статический Метод

Remove all viewers from DBfile
public static RemoveAllViewers ( ) : void
Результат void

RemoveViewer() публичный статический Метод

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
Результат void

SaveAllQuotes() публичный статический Метод

Save all quotes after deleting current entries in case of id change
public static SaveAllQuotes ( ) : void
Результат void

UpdateAllViewers() публичный статический Метод

Update all viewers in DBfile from colDatabase. Does not check if viewers exists, make sure they do prior calling.
public static UpdateAllViewers ( ) : void
Результат void

UpdateViewer() публичный статический Метод

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
Результат void

Описание свойств

fileCommands публичное статическое свойство

public static string fileCommands
Результат string

fileCurrency публичное статическое свойство

public static string fileCurrency
Результат string

fileQuotes публичное статическое свойство

public static string fileQuotes
Результат string

fileViewers публичное статическое свойство

public static string fileViewers
Результат string