C# 클래스 TwitchLib.Common

A common/utility class for frequently used functions and variables.
파일 보기 프로젝트 열기: swiftyspiffy/TwitchLib

공개 메소드들

메소드 설명
DateTimeStringToObject ( string dateTime ) : System.DateTime

Takes date time string received from Twitch API and converts it to DateTime object.

JsonIsNullOrEmpty ( JToken token ) : bool

Function to check if a jtoken is null. Credits: http://stackoverflow.com/questions/24066400/checking-for-empty-null-jtoken-in-a-jobject

Log ( string message, bool includeDate = false, bool includeTime = false, System.Enums type = Enums.LogType.Normal ) : void

Writes message to console output. Maintains foreground color while applying a temporary color. Locks output to ensure color is applied (may be incorrect way to go about it)

ParseQuotesAndNonQuotes ( string message ) : List

Parses out strings that have quotes, ideal for commands that use quotes for parameters

메소드 상세

DateTimeStringToObject() 공개 정적인 메소드

Takes date time string received from Twitch API and converts it to DateTime object.
public static DateTimeStringToObject ( string dateTime ) : System.DateTime
dateTime string
리턴 System.DateTime

JsonIsNullOrEmpty() 공개 정적인 메소드

Function to check if a jtoken is null. Credits: http://stackoverflow.com/questions/24066400/checking-for-empty-null-jtoken-in-a-jobject
public static JsonIsNullOrEmpty ( JToken token ) : bool
token JToken JToken to check if null or not.
리턴 bool

Log() 공개 정적인 메소드

Writes message to console output. Maintains foreground color while applying a temporary color. Locks output to ensure color is applied (may be incorrect way to go about it)
public static Log ( string message, bool includeDate = false, bool includeTime = false, System.Enums type = Enums.LogType.Normal ) : void
message string
includeDate bool
includeTime bool
type System.Enums
리턴 void

ParseQuotesAndNonQuotes() 공개 정적인 메소드

Parses out strings that have quotes, ideal for commands that use quotes for parameters
public static ParseQuotesAndNonQuotes ( string message ) : List
message string Input string to attempt to parse.
리턴 List