C# Class Noobot.Core.NoobotCore

Inheritance: INoobotCore
Exibir arquivo Open project: noobot/noobot Class Usage Examples

Public Methods

Method Description
Connect ( ) : System.Threading.Tasks.Task
Disconnect ( ) : void
GetBotUserName ( ) : string
GetChannelId ( string channelName ) : string
GetUserIdForUsername ( string username ) : string
ListChannels ( ) : string>.Dictionary
MessageReceived ( SlackMessage message ) : System.Threading.Tasks.Task
NoobotCore ( IConfigReader configReader, ILog log, INoobotContainer container ) : System
Ping ( ) : System.Threading.Tasks.Task
SendMessage ( Noobot.Core.MessagingPipeline.Response.ResponseMessage responseMessage ) : System.Threading.Tasks.Task

Private Methods

Method Description
GetAttachmentFields ( Noobot.Core.MessagingPipeline.Response.Attachment attachment ) : IList
GetAttachments ( Noobot.Core.MessagingPipeline.Response.Attachment attachment ) : IList
GetChatHub ( Noobot.Core.MessagingPipeline.Response.ResponseMessage responseMessage ) : Task
GetUserChannel ( SlackMessage message ) : Task
GetUserChatHub ( string userId, bool joinChannel = true ) : Task
GetUsername ( SlackMessage message ) : string
OnDisconnect ( ) : void
Reconnect ( ) : void
StartPlugins ( ) : void

TODO: Move these methods into container?

StopPlugins ( ) : void

TODO: Move these methods into container?

Method Details

Connect() public method

public Connect ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

Disconnect() public method

public Disconnect ( ) : void
return void

GetBotUserName() public method

public GetBotUserName ( ) : string
return string

GetChannelId() public method

public GetChannelId ( string channelName ) : string
channelName string
return string

GetUserIdForUsername() public method

public GetUserIdForUsername ( string username ) : string
username string
return string

ListChannels() public method

public ListChannels ( ) : string>.Dictionary
return string>.Dictionary

MessageReceived() public method

public MessageReceived ( SlackMessage message ) : System.Threading.Tasks.Task
message SlackConnector.Models.SlackMessage
return System.Threading.Tasks.Task

NoobotCore() public method

public NoobotCore ( IConfigReader configReader, ILog log, INoobotContainer container ) : System
configReader IConfigReader
log ILog
container INoobotContainer
return System

Ping() public method

public Ping ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

SendMessage() public method

public SendMessage ( Noobot.Core.MessagingPipeline.Response.ResponseMessage responseMessage ) : System.Threading.Tasks.Task
responseMessage Noobot.Core.MessagingPipeline.Response.ResponseMessage
return System.Threading.Tasks.Task