Beispiel #1
0
    public static string NoticeColorToString(NoticeColor colorEnum)
    {
        switch (colorEnum)
        {
        case NoticeColor.Green:
            return("*System-Green");

        case NoticeColor.Red:
            return("*System-Red");

        case NoticeColor.Blue:
            return("*System-Blue");

        case NoticeColor.Yellow:
            return("*System-Yellow");

        case NoticeColor.Purple:
            return("*System-Purple");

        case NoticeColor.White:
            return("*System-White");

        default:
            throw new ArgumentOutOfRangeException("colorEnum", colorEnum, null);
        }
    }
Beispiel #2
0
 public static string ToNotice(string nickname, string msgIn, NoticeColor colorEnum = NoticeColor.Green)
 {
     return(string.Format(":{0} NOTICE {1} :{2}", nickname, NoticeColorToString(colorEnum), msgIn));
 }
Beispiel #3
0
 public static string ToTwitchNotice(string msgIn, NoticeColor colorEnum = NoticeColor.Green)
 {
     return(ToNotice("Twitch", msgIn, colorEnum));
 }