C# 클래스 SteamBot.DogeTipBotHandler

상속: UserHandler
파일 보기 프로젝트 열기: natoshi/steamdogebot

공개 메소드들

메소드 설명
DogeTipBotHandler ( Bot bot, SteamID sid ) : System.Collections.Generic
OnAcceptedFriend ( SteamID id ) : void
OnAddedFriend ( SteamID id ) : void
OnBefriend ( SteamID id ) : void
OnChatRoomMessage ( SteamID chatID, SteamID sender, string message ) : void
OnFriendAdd ( ) : bool
OnFriendRemove ( ) : void
OnGroupAdd ( ) : bool
OnLoginCompleted ( ) : bool
OnMessage ( string message, EChatEntryType type ) : void
OnSteamMessage ( SteamID sender, string message, SteamID chatID, bool isChatroom ) : bool
OnTradeAccept ( ) : void
OnTradeAddItem ( SteamBot.Schema schemaItem, Inventory inventoryItem ) : void
OnTradeError ( string error ) : void
OnTradeInit ( ) : void
OnTradeMessage ( string message ) : void
OnTradeReady ( bool ready ) : void
OnTradeRemoveItem ( SteamBot.Schema schemaItem, Inventory inventoryItem ) : void
OnTradeRequest ( ) : bool
OnTradeSuccess ( ) : void
OnTradeTimeout ( ) : void
Validate ( ) : bool
checkPeriodically ( object sender, MySql.Data.MySqlClient.DoWorkEventArgs e ) : void
command_add ( SteamID sender, SteamID chatID, bool isChatroom ) : bool

Request adding DOGE to balance

command_alias ( SteamID sender, SteamID chatID, bool isChatroom ) : bool

Sets an alias for a particular Steam user per registered user. User can then easily and safely tip this Steam user.

command_balance ( SteamID sender, SteamID chatID, bool isChatroom ) : bool

Tells the user their account balance if registered

command_confirm ( SteamID sender, SteamID chatID, bool isChatroom ) : bool

Confirms a pending tip

command_deny ( SteamID sender, SteamID chatID, bool isChatroom ) : bool

Denies a pending tip

command_donate ( SteamID sender, SteamID chatID, bool isChatroom ) : bool

Send a donation (treated as tip to bot)

command_help ( SteamID sender, SteamID chatID, bool isChatroom ) : bool

Sends the user useful information on how to use the bot

command_labels ( SteamID sender, SteamID chatID, bool isChatroom ) : bool

Show a list of enabled labels

command_register ( SteamID sender, SteamID chatID, bool isChatroom ) : bool

Registers a user

command_tip ( SteamID sender, SteamID chatID, bool isChatroom ) : bool

Tip a user!

command_withdraw ( SteamID sender, SteamID chatID, bool isChatroom ) : bool

Withdraw an amount of DOGE to an address

completeTip ( object tip_input ) : bool
getTipNotification ( SteamID sender, double amount, string label, string tip_msg, bool anonymous ) : string
registerUser ( SteamID userID ) : bool
sendMessage ( SteamID userReceiver, SteamID chatReceiver, bool chatroom, string message ) : void

비공개 메소드들

메소드 설명
getConversionRate ( ) : double
getSteamID64 ( string URL ) : string
getSteamName ( SteamID ID ) : string
randomStringBuilder ( ) : string
readElement ( XmlDocument document, string element ) : string
returnQuery ( string query ) : DataSet

메소드 상세

DogeTipBotHandler() 공개 메소드

public DogeTipBotHandler ( Bot bot, SteamID sid ) : System.Collections.Generic
bot Bot
sid SteamKit2.SteamID
리턴 System.Collections.Generic

OnAcceptedFriend() 공개 메소드

public OnAcceptedFriend ( SteamID id ) : void
id SteamKit2.SteamID
리턴 void

OnAddedFriend() 공개 메소드

public OnAddedFriend ( SteamID id ) : void
id SteamKit2.SteamID
리턴 void

OnBefriend() 공개 메소드

public OnBefriend ( SteamID id ) : void
id SteamKit2.SteamID
리턴 void

OnChatRoomMessage() 공개 메소드

public OnChatRoomMessage ( SteamID chatID, SteamID sender, string message ) : void
chatID SteamKit2.SteamID
sender SteamKit2.SteamID
message string
리턴 void

OnFriendAdd() 공개 메소드

public OnFriendAdd ( ) : bool
리턴 bool

OnFriendRemove() 공개 메소드

public OnFriendRemove ( ) : void
리턴 void

OnGroupAdd() 공개 메소드

public OnGroupAdd ( ) : bool
리턴 bool

OnLoginCompleted() 공개 메소드

public OnLoginCompleted ( ) : bool
리턴 bool

OnMessage() 공개 메소드

public OnMessage ( string message, EChatEntryType type ) : void
message string
type EChatEntryType
리턴 void

OnSteamMessage() 공개 메소드

public OnSteamMessage ( SteamID sender, string message, SteamID chatID, bool isChatroom ) : bool
sender SteamKit2.SteamID
message string
chatID SteamKit2.SteamID
isChatroom bool
리턴 bool

OnTradeAccept() 공개 메소드

public OnTradeAccept ( ) : void
리턴 void

OnTradeAddItem() 공개 메소드

public OnTradeAddItem ( SteamBot.Schema schemaItem, Inventory inventoryItem ) : void
schemaItem SteamBot.Schema
inventoryItem Inventory
리턴 void

OnTradeError() 공개 메소드

public OnTradeError ( string error ) : void
error string
리턴 void

OnTradeInit() 공개 메소드

public OnTradeInit ( ) : void
리턴 void

OnTradeMessage() 공개 메소드

public OnTradeMessage ( string message ) : void
message string
리턴 void

OnTradeReady() 공개 메소드

public OnTradeReady ( bool ready ) : void
ready bool
리턴 void

OnTradeRemoveItem() 공개 메소드

public OnTradeRemoveItem ( SteamBot.Schema schemaItem, Inventory inventoryItem ) : void
schemaItem SteamBot.Schema
inventoryItem Inventory
리턴 void

OnTradeRequest() 공개 메소드

public OnTradeRequest ( ) : bool
리턴 bool

OnTradeSuccess() 공개 메소드

public OnTradeSuccess ( ) : void
리턴 void

OnTradeTimeout() 공개 메소드

public OnTradeTimeout ( ) : void
리턴 void

Validate() 공개 메소드

public Validate ( ) : bool
리턴 bool

checkPeriodically() 공개 메소드

public checkPeriodically ( object sender, MySql.Data.MySqlClient.DoWorkEventArgs e ) : void
sender object
e MySql.Data.MySqlClient.DoWorkEventArgs
리턴 void

command_add() 공개 메소드

Request adding DOGE to balance
public command_add ( SteamID sender, SteamID chatID, bool isChatroom ) : bool
sender SteamKit2.SteamID
chatID SteamKit2.SteamID
isChatroom bool
리턴 bool

command_alias() 공개 메소드

Sets an alias for a particular Steam user per registered user. User can then easily and safely tip this Steam user.
public command_alias ( SteamID sender, SteamID chatID, bool isChatroom ) : bool
sender SteamKit2.SteamID
chatID SteamKit2.SteamID
isChatroom bool
리턴 bool

command_balance() 공개 메소드

Tells the user their account balance if registered
public command_balance ( SteamID sender, SteamID chatID, bool isChatroom ) : bool
sender SteamKit2.SteamID
chatID SteamKit2.SteamID
isChatroom bool
리턴 bool

command_confirm() 공개 메소드

Confirms a pending tip
public command_confirm ( SteamID sender, SteamID chatID, bool isChatroom ) : bool
sender SteamKit2.SteamID
chatID SteamKit2.SteamID
isChatroom bool
리턴 bool

command_deny() 공개 메소드

Denies a pending tip
public command_deny ( SteamID sender, SteamID chatID, bool isChatroom ) : bool
sender SteamKit2.SteamID
chatID SteamKit2.SteamID
isChatroom bool
리턴 bool

command_donate() 공개 메소드

Send a donation (treated as tip to bot)
public command_donate ( SteamID sender, SteamID chatID, bool isChatroom ) : bool
sender SteamKit2.SteamID
chatID SteamKit2.SteamID
isChatroom bool
리턴 bool

command_help() 공개 메소드

Sends the user useful information on how to use the bot
public command_help ( SteamID sender, SteamID chatID, bool isChatroom ) : bool
sender SteamKit2.SteamID
chatID SteamKit2.SteamID
isChatroom bool
리턴 bool

command_labels() 공개 메소드

Show a list of enabled labels
public command_labels ( SteamID sender, SteamID chatID, bool isChatroom ) : bool
sender SteamKit2.SteamID
chatID SteamKit2.SteamID
isChatroom bool
리턴 bool

command_register() 공개 메소드

Registers a user
public command_register ( SteamID sender, SteamID chatID, bool isChatroom ) : bool
sender SteamKit2.SteamID
chatID SteamKit2.SteamID
isChatroom bool
리턴 bool

command_tip() 공개 메소드

Tip a user!
public command_tip ( SteamID sender, SteamID chatID, bool isChatroom ) : bool
sender SteamKit2.SteamID
chatID SteamKit2.SteamID
isChatroom bool
리턴 bool

command_withdraw() 공개 메소드

Withdraw an amount of DOGE to an address
public command_withdraw ( SteamID sender, SteamID chatID, bool isChatroom ) : bool
sender SteamKit2.SteamID
chatID SteamKit2.SteamID
isChatroom bool
리턴 bool

completeTip() 공개 메소드

public completeTip ( object tip_input ) : bool
tip_input object
리턴 bool

getTipNotification() 공개 메소드

public getTipNotification ( SteamID sender, double amount, string label, string tip_msg, bool anonymous ) : string
sender SteamKit2.SteamID
amount double
label string
tip_msg string
anonymous bool
리턴 string

registerUser() 공개 메소드

public registerUser ( SteamID userID ) : bool
userID SteamKit2.SteamID
리턴 bool

sendMessage() 공개 정적인 메소드

public static sendMessage ( SteamID userReceiver, SteamID chatReceiver, bool chatroom, string message ) : void
userReceiver SteamKit2.SteamID
chatReceiver SteamKit2.SteamID
chatroom bool
message string
리턴 void