コード例 #1
0
ファイル: Direktor.cs プロジェクト: MihaelaUdovicic/LV3
        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
ファイル: Direktor.cs プロジェクト: MihaelaUdovicic/LV3
        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());
        }