C# Класс TwitchLib.ChatParsing

Static parsing class handling all chat message parsing
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Описание методов

detectCommandReceived() публичный статический Метод

[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
Результат TwitchLib.Models.Client.DetectionReturn

detectConnected() публичный статический Метод

[Works] Parse function to detect connected successfully
public static detectConnected ( string message ) : bool
message string
Результат bool

detectMessageReceived() публичный статический Метод

[Works] Parse function to detect new messages.
public static detectMessageReceived ( string message, List channels ) : DetectionReturn
message string
channels List
Результат TwitchLib.Models.Client.DetectionReturn

detectNewSubscriber() публичный статический Метод

Parse function to detect new subscriber
public static detectNewSubscriber ( string message, List channels ) : DetectionReturn
message string
channels List
Результат TwitchLib.Models.Client.DetectionReturn

detectUserJoined() публичный статический Метод

[Works] Parse function to detect new viewers.
public static detectUserJoined ( string message, List channels ) : DetectionReturn
message string
channels List
Результат TwitchLib.Models.Client.DetectionReturn

detectedChannelStateChanged() публичный статический Метод

[Works] Parse function to detect new channel state.
public static detectedChannelStateChanged ( string message, List channels ) : DetectionReturn
message string
channels List
Результат TwitchLib.Models.Client.DetectionReturn

detectedChatColorChanged() публичный статический Метод

Parse function to detect chat color being changed successfully
public static detectedChatColorChanged ( string message, List channels ) : DetectionReturn
message string
channels List
Результат TwitchLib.Models.Client.DetectionReturn

detectedClearedChat() публичный статический Метод

Parse function to detect clearchat.
public static detectedClearedChat ( string message, List channels ) : DetectionReturn
message string
channels List
Результат TwitchLib.Models.Client.DetectionReturn

detectedExistingUsers() публичный статический Метод

[Works] Parse function to detect existing user messages.
public static detectedExistingUsers ( string message, string username, List channels ) : DetectionReturn
message string
username string
channels List
Результат TwitchLib.Models.Client.DetectionReturn

detectedHostLeft() публичный статический Метод

Parse function to detect host leaving.
public static detectedHostLeft ( string message, List channels ) : DetectionReturn
message string
channels List
Результат TwitchLib.Models.Client.DetectionReturn

detectedHostingStarted() публичный статический Метод

[Works] Parse function to detect started hosting.
public static detectedHostingStarted ( string message ) : bool
message string
Результат bool

detectedHostingStopped() публичный статический Метод

Parse function to detect stopped hosting.
public static detectedHostingStopped ( string message ) : bool
message string
Результат bool

detectedIncorrectLogin() публичный статический Метод

[Works] Parse function to detect failed login.
public static detectedIncorrectLogin ( string message, List channels ) : DetectionReturn
message string
channels List
Результат TwitchLib.Models.Client.DetectionReturn

detectedMalformedOAuth() публичный статический Метод

[Works] Parse function to detect malformed oauth error.
public static detectedMalformedOAuth ( string message, List channels ) : DetectionReturn
message string
channels List
Результат TwitchLib.Models.Client.DetectionReturn

detectedModeatorLeft() публичный статический Метод

[Works] Parse function to detect leaving moderators.
public static detectedModeatorLeft ( string message, List channels ) : DetectionReturn
message string
channels List
Результат TwitchLib.Models.Client.DetectionReturn

detectedModeratorJoined() публичный статический Метод

[Works] Parse function to detect new moderators.
public static detectedModeratorJoined ( string message, List channels ) : DetectionReturn
message string
channels List
Результат TwitchLib.Models.Client.DetectionReturn

detectedModeratorsReceived() публичный статический Метод

Parse function to detect list of moderators was received.
public static detectedModeratorsReceived ( string message, List channels ) : DetectionReturn
message string
channels List
Результат TwitchLib.Models.Client.DetectionReturn

detectedPing() публичный статический Метод

[Works] Parse function to detect PING messages.
public static detectedPing ( string message ) : DetectionReturn
message string
Результат TwitchLib.Models.Client.DetectionReturn

detectedPong() публичный статический Метод

[Works] Parse function to detect PONG messages.
public static detectedPong ( string message ) : DetectionReturn
message string
Результат TwitchLib.Models.Client.DetectionReturn

detectedReSubscriber() публичный статический Метод

Parse function to detect resubscriptions.
public static detectedReSubscriber ( string message, List channels ) : DetectionReturn
message string
channels List
Результат TwitchLib.Models.Client.DetectionReturn

detectedUserBanned() публичный статический Метод

Parse function to detect viewer was banned.
public static detectedUserBanned ( string message, List channels ) : DetectionReturn
message string
channels List
Результат TwitchLib.Models.Client.DetectionReturn

detectedUserLeft() публичный статический Метод

[Works] Parse function to detect leaving viewers.
public static detectedUserLeft ( string message, List channels ) : DetectionReturn
message string
channels List
Результат TwitchLib.Models.Client.DetectionReturn

detectedUserStateChanged() публичный статический Метод

[Works] Parse function to detect new user states.
public static detectedUserStateChanged ( string message, List channels ) : DetectionReturn
message string
channels List
Результат TwitchLib.Models.Client.DetectionReturn

detectedUserTimedout() публичный статический Метод

Parse function to detect a viewer was timedout.
public static detectedUserTimedout ( string message, List channels ) : DetectionReturn
message string
channels List
Результат TwitchLib.Models.Client.DetectionReturn

getReadType() публичный статический Метод

Function returning the type of message received from Twitch
public static getReadType ( string message, string channel ) : string
message string
channel string
Результат string