C# Class OakBot.Utils

Afficher le fichier Open project: ocgineer/OakBot

Méthodes publiques

Свойство Type Description
botHttp SimpleHTTPServer

Méthodes publiques

Méthode 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

Méthode Description
InternetSetOption ( IntPtr hInternet, int dwOption, IntPtr lpBuffer, int lpdwBufferLength ) : bool

Method Details

AddToViewersCol() public static méthode

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
Résultat void

ClearFolder() public static méthode

public static ClearFolder ( DirectoryInfo folder ) : void
folder System.IO.DirectoryInfo
Résultat void

GetClient() public static méthode

public static GetClient ( ) : TwitchAuthenticatedClient
Résultat OakBot.Clients.TwitchAuthenticatedClient

GetTwitchAlertsAuthToken() public static méthode

public static GetTwitchAlertsAuthToken ( string absoluteUrl ) : string
absoluteUrl string
Résultat string

GetTwitchAuthToken() public static méthode

public static GetTwitchAuthToken ( string absoluteUrl ) : string
absoluteUrl string
Résultat string

HideScriptErrors() public static méthode

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

RemoveFromViewersCol() public static méthode

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

StartWebserver() public static méthode

public static StartWebserver ( ) : void
Résultat void

SuppressWininetBehavior() public static méthode

public static SuppressWininetBehavior ( ) : void
Résultat void

clearIECache() public static méthode

public static clearIECache ( ) : void
Résultat void

getIdFromYouTube() public static méthode

public static getIdFromYouTube ( string youtube ) : string
youtube string
Résultat string

getTitleFromYouTube() public static méthode

public static getTitleFromYouTube ( string link ) : string
link string
Résultat string

Property Details

botHttp public_oe static_oe property

public static SimpleHTTPServer,OakBot botHttp
Résultat SimpleHTTPServer