C# Class TwitchLib.ChatParsing

Static parsing class handling all chat message parsing
Show file Open project: swiftyspiffy/TwitchLib Class Usage Examples

Public Methods

Method Description
detectCommandReceived ( string botUsername, string message, List channels, MessageEmoteCollection _channelEmotes, bool WillReplaceEmotes, List _commandIdentifiers ) : DetectionReturn

[Works] Parse function to detect new commands.

detectConnected ( string message ) : bool

[Works] Parse function to detect connected successfully

detectMessageReceived ( string message, List channels ) : DetectionReturn

[Works] Parse function to detect new messages.

detectNewSubscriber ( string message, List channels ) : DetectionReturn

Parse function to detect new subscriber

detectUserJoined ( string message, List channels ) : DetectionReturn

[Works] Parse function to detect new viewers.

detectedChannelStateChanged ( string message, List channels ) : DetectionReturn

[Works] Parse function to detect new channel state.

detectedChatColorChanged ( string message, List channels ) : DetectionReturn

Parse function to detect chat color being changed successfully

detectedClearedChat ( string message, List channels ) : DetectionReturn

Parse function to detect clearchat.

detectedExistingUsers ( string message, string username, List channels ) : DetectionReturn

[Works] Parse function to detect existing user messages.

detectedHostLeft ( string message, List channels ) : DetectionReturn

Parse function to detect host leaving.

detectedHostingStarted ( string message ) : bool

[Works] Parse function to detect started hosting.

detectedHostingStopped ( string message ) : bool

Parse function to detect stopped hosting.

detectedIncorrectLogin ( string message, List channels ) : DetectionReturn

[Works] Parse function to detect failed login.

detectedMalformedOAuth ( string message, List channels ) : DetectionReturn

[Works] Parse function to detect malformed oauth error.

detectedModeatorLeft ( string message, List channels ) : DetectionReturn

[Works] Parse function to detect leaving moderators.

detectedModeratorJoined ( string message, List channels ) : DetectionReturn

[Works] Parse function to detect new moderators.

detectedModeratorsReceived ( string message, List channels ) : DetectionReturn

Parse function to detect list of moderators was received.

detectedPing ( string message ) : DetectionReturn

[Works] Parse function to detect PING messages.

detectedPong ( string message ) : DetectionReturn

[Works] Parse function to detect PONG messages.

detectedReSubscriber ( string message, List channels ) : DetectionReturn

Parse function to detect resubscriptions.

detectedUserBanned ( string message, List channels ) : DetectionReturn

Parse function to detect viewer was banned.

detectedUserLeft ( string message, List channels ) : DetectionReturn

[Works] Parse function to detect leaving viewers.

detectedUserStateChanged ( string message, List channels ) : DetectionReturn

[Works] Parse function to detect new user states.

detectedUserTimedout ( string message, List channels ) : DetectionReturn

Parse function to detect a viewer was timedout.

getReadType ( string message, string channel ) : string

Function returning the type of message received from Twitch

Method Details

detectCommandReceived() public static method

[Works] Parse function to detect new commands.
public static detectCommandReceived ( string botUsername, string message, List channels, MessageEmoteCollection _channelEmotes, bool WillReplaceEmotes, List _commandIdentifiers ) : DetectionReturn
botUsername string
message string
channels List
_channelEmotes MessageEmoteCollection
WillReplaceEmotes bool
_commandIdentifiers List
return TwitchLib.Models.Client.DetectionReturn

detectConnected() public static method

[Works] Parse function to detect connected successfully
public static detectConnected ( string message ) : bool
message string
return bool

detectMessageReceived() public static method

[Works] Parse function to detect new messages.
public static detectMessageReceived ( string message, List channels ) : DetectionReturn
message string
channels List
return TwitchLib.Models.Client.DetectionReturn

detectNewSubscriber() public static method

Parse function to detect new subscriber
public static detectNewSubscriber ( string message, List channels ) : DetectionReturn
message string
channels List
return TwitchLib.Models.Client.DetectionReturn

detectUserJoined() public static method

[Works] Parse function to detect new viewers.
public static detectUserJoined ( string message, List channels ) : DetectionReturn
message string
channels List
return TwitchLib.Models.Client.DetectionReturn

detectedChannelStateChanged() public static method

[Works] Parse function to detect new channel state.
public static detectedChannelStateChanged ( string message, List channels ) : DetectionReturn
message string
channels List
return TwitchLib.Models.Client.DetectionReturn

detectedChatColorChanged() public static method

Parse function to detect chat color being changed successfully
public static detectedChatColorChanged ( string message, List channels ) : DetectionReturn
message string
channels List
return TwitchLib.Models.Client.DetectionReturn

detectedClearedChat() public static method

Parse function to detect clearchat.
public static detectedClearedChat ( string message, List channels ) : DetectionReturn
message string
channels List
return TwitchLib.Models.Client.DetectionReturn

detectedExistingUsers() public static method

[Works] Parse function to detect existing user messages.
public static detectedExistingUsers ( string message, string username, List channels ) : DetectionReturn
message string
username string
channels List
return TwitchLib.Models.Client.DetectionReturn

detectedHostLeft() public static method

Parse function to detect host leaving.
public static detectedHostLeft ( string message, List channels ) : DetectionReturn
message string
channels List
return TwitchLib.Models.Client.DetectionReturn

detectedHostingStarted() public static method

[Works] Parse function to detect started hosting.
public static detectedHostingStarted ( string message ) : bool
message string
return bool

detectedHostingStopped() public static method

Parse function to detect stopped hosting.
public static detectedHostingStopped ( string message ) : bool
message string
return bool

detectedIncorrectLogin() public static method

[Works] Parse function to detect failed login.
public static detectedIncorrectLogin ( string message, List channels ) : DetectionReturn
message string
channels List
return TwitchLib.Models.Client.DetectionReturn

detectedMalformedOAuth() public static method

[Works] Parse function to detect malformed oauth error.
public static detectedMalformedOAuth ( string message, List channels ) : DetectionReturn
message string
channels List
return TwitchLib.Models.Client.DetectionReturn

detectedModeatorLeft() public static method

[Works] Parse function to detect leaving moderators.
public static detectedModeatorLeft ( string message, List channels ) : DetectionReturn
message string
channels List
return TwitchLib.Models.Client.DetectionReturn

detectedModeratorJoined() public static method

[Works] Parse function to detect new moderators.
public static detectedModeratorJoined ( string message, List channels ) : DetectionReturn
message string
channels List
return TwitchLib.Models.Client.DetectionReturn

detectedModeratorsReceived() public static method

Parse function to detect list of moderators was received.
public static detectedModeratorsReceived ( string message, List channels ) : DetectionReturn
message string
channels List
return TwitchLib.Models.Client.DetectionReturn

detectedPing() public static method

[Works] Parse function to detect PING messages.
public static detectedPing ( string message ) : DetectionReturn
message string
return TwitchLib.Models.Client.DetectionReturn

detectedPong() public static method

[Works] Parse function to detect PONG messages.
public static detectedPong ( string message ) : DetectionReturn
message string
return TwitchLib.Models.Client.DetectionReturn

detectedReSubscriber() public static method

Parse function to detect resubscriptions.
public static detectedReSubscriber ( string message, List channels ) : DetectionReturn
message string
channels List
return TwitchLib.Models.Client.DetectionReturn

detectedUserBanned() public static method

Parse function to detect viewer was banned.
public static detectedUserBanned ( string message, List channels ) : DetectionReturn
message string
channels List
return TwitchLib.Models.Client.DetectionReturn

detectedUserLeft() public static method

[Works] Parse function to detect leaving viewers.
public static detectedUserLeft ( string message, List channels ) : DetectionReturn
message string
channels List
return TwitchLib.Models.Client.DetectionReturn

detectedUserStateChanged() public static method

[Works] Parse function to detect new user states.
public static detectedUserStateChanged ( string message, List channels ) : DetectionReturn
message string
channels List
return TwitchLib.Models.Client.DetectionReturn

detectedUserTimedout() public static method

Parse function to detect a viewer was timedout.
public static detectedUserTimedout ( string message, List channels ) : DetectionReturn
message string
channels List
return TwitchLib.Models.Client.DetectionReturn

getReadType() public static method

Function returning the type of message received from Twitch
public static getReadType ( string message, string channel ) : string
message string
channel string
return string