예제 #1
0
        public ConsoleNotification INFOnotification(string author)
        {
            NotificationBuilder builder = new NotificationBuilder();

            builder.SetAuthor(author);
            builder.SetTitle("doop");
            builder.SetLevel(Category.INFO);
            builder.SetColor(ConsoleColor.White);
            builder.SetText("lv3");
            return(builder.Build());
        }
예제 #2
0
        public ConsoleNotification ALERTnotification(string author)
        {
            NotificationBuilder builder = new NotificationBuilder();

            builder.SetAuthor(author);
            builder.SetTitle("doop");
            builder.SetLevel(Category.ALERT);
            builder.SetColor(ConsoleColor.DarkRed);
            builder.SetText("lv3");
            return(builder.Build());
        }
예제 #3
0
        public ConsoleNotification CreateERRORNotification(string author)
        {
            NotificationBuilder note = new NotificationBuilder();

            note.SetAuthor(author);
            note.SetTitle("Error!");
            note.SetLevel(Category.ERROR);
            note.SetColor(ConsoleColor.White);
            note.SetText("Content");

            return(note.Build());
        }
예제 #4
0
        public ConsoleNotification CreateALERTNotification(string author)
        {
            NotificationBuilder note = new NotificationBuilder();

            note.SetAuthor(author);
            note.SetTitle("Alert!");
            note.SetLevel(Category.ALERT);
            note.SetColor(ConsoleColor.Red);
            note.SetText("Content");

            return(note.Build());
        }
예제 #5
0
        public ConsoleNotification CreateINFONotification(string author)
        {
            NotificationBuilder note = new NotificationBuilder();

            note.SetAuthor(author);
            note.SetTitle("Informations!");
            note.SetLevel(Category.INFO);
            note.SetColor(ConsoleColor.Green);
            note.SetText("Content");

            return(note.Build());
        }