C# Class OakBot.Utils

显示文件 Open project: ocgineer/OakBot

Public Properties

Property Type Description
botHttp SimpleHTTPServer

Public Methods

Method Description
AddToViewersCol ( string viewerName ) : void

Add the viewer as Viewer to the viewers collection. Creates a new Viewer and adds it to the database if needed.

ClearFolder ( DirectoryInfo folder ) : void
GetClient ( ) : TwitchAuthenticatedClient
GetTwitchAlertsAuthToken ( string absoluteUrl ) : string
GetTwitchAuthToken ( string absoluteUrl ) : string
HideScriptErrors ( System.Windows.Controls.WebBrowser wb, bool hide ) : void
RemoveFromViewersCol ( string viewerName ) : void

Removes the viewer from the viewers collection.

StartWebserver ( ) : void
SuppressWininetBehavior ( ) : void
clearIECache ( ) : void
getIdFromYouTube ( string youtube ) : string
getTitleFromYouTube ( string link ) : string

Private Methods

Method Description
InternetSetOption ( IntPtr hInternet, int dwOption, IntPtr lpBuffer, int lpdwBufferLength ) : bool

Method Details

AddToViewersCol() public static method

Add the viewer as Viewer to the viewers collection. Creates a new Viewer and adds it to the database if needed.
public static AddToViewersCol ( string viewerName ) : void
viewerName string Viewers Twitch username to add
return void

ClearFolder() public static method

public static ClearFolder ( DirectoryInfo folder ) : void
folder System.IO.DirectoryInfo
return void

GetClient() public static method

public static GetClient ( ) : TwitchAuthenticatedClient
return OakBot.Clients.TwitchAuthenticatedClient

GetTwitchAlertsAuthToken() public static method

public static GetTwitchAlertsAuthToken ( string absoluteUrl ) : string
absoluteUrl string
return string

GetTwitchAuthToken() public static method

public static GetTwitchAuthToken ( string absoluteUrl ) : string
absoluteUrl string
return string

HideScriptErrors() public static method

public static HideScriptErrors ( System.Windows.Controls.WebBrowser wb, bool hide ) : void
wb System.Windows.Controls.WebBrowser
hide bool
return void

RemoveFromViewersCol() public static method

Removes the viewer from the viewers collection.
public static RemoveFromViewersCol ( string viewerName ) : void
viewerName string Viewers Twitch username to remove
return void

StartWebserver() public static method

public static StartWebserver ( ) : void
return void

SuppressWininetBehavior() public static method

public static SuppressWininetBehavior ( ) : void
return void

clearIECache() public static method

public static clearIECache ( ) : void
return void

getIdFromYouTube() public static method

public static getIdFromYouTube ( string youtube ) : string
youtube string
return string

getTitleFromYouTube() public static method

public static getTitleFromYouTube ( string link ) : string
link string
return string

Property Details

botHttp public_oe static_oe property

public static SimpleHTTPServer,OakBot botHttp
return SimpleHTTPServer