C# Class OakBot.Giveaway

Inheritance: INotifyPropertyChanged
Datei anzeigen Open project: ocgineer/OakBot Class Usage Examples

Public Methods

Method Description
DrawWinner ( ) : void
Giveaway ( string name, System.TimeSpan time, string word, int cost, bool followed, byte luck, System.TimeSpan response ) : OakBot.Args
Start ( ) : void
Stop ( ) : void

Protected Methods

Method Description
OnWinnerChosen ( WinnerChosenEventArgs e ) : void

Private Methods

Method Description
BotChatConnection_ChatMessageReceived ( object o, ChatMessageReceivedEventArgs e ) : void
GiveawayTimer_Elapsed ( object sender, System.Timers.ElapsedEventArgs e ) : void
MeetsRequirements ( Viewer user ) : bool
NotifyPropertyChanged ( string info ) : void

Method Details

DrawWinner() public method

public DrawWinner ( ) : void
return void

Giveaway() public method

public Giveaway ( string name, System.TimeSpan time, string word, int cost, bool followed, byte luck, System.TimeSpan response ) : OakBot.Args
name string
time System.TimeSpan
word string
cost int
followed bool
luck byte
response System.TimeSpan
return OakBot.Args

OnWinnerChosen() protected method

protected OnWinnerChosen ( WinnerChosenEventArgs e ) : void
e OakBot.Args.WinnerChosenEventArgs
return void

Start() public method

public Start ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void