C# 클래스 OakBot.DatabaseUtils

파일 보기 프로젝트 열기: ocgineer/OakBot

공개 프로퍼티들

프로퍼티 타입 설명
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