示例#1
0
        private async Task AfterAddNewDevnetworkDialog(IDialogContext context, IAwaitable <object> result)
        {
            lastAddedDevNetwork = await result as DevNetwork;
            devNetworks.Add(lastAddedDevNetwork);

            PromptDialog.Confirm(context, AfterQuestionIfPresentationShallBeAdded, "Do you want to add a Presentation to the DevNetwork?");
        }
示例#2
0
        private static async Task ShowDevNetworkInfo(IDialogContext context, DevNetwork devNetwork)
        {
            var stringBuilder = new StringBuilder();

            stringBuilder.Append($"DevNetwork Session sheduled for {devNetwork.Date.ToShortDateString()} {devNetwork.Date.ToShortTimeString()} in room {devNetwork.Room}");
            stringBuilder.Append($"{Environment.NewLine}{Environment.NewLine}");

            foreach (var presentation in devNetwork.Presentations)
            {
                stringBuilder.Append($"• {presentation.Title} by {presentation.Presenter}: {presentation.Summary}");
                stringBuilder.Append($"{Environment.NewLine}{Environment.NewLine}");
            }

            await context.PostAsync(stringBuilder.ToString());
        }
示例#3
0
        private void LoadDevNetwork()
        {
            var chatbotPresentation = new Presentation {
                Presenter = "Benjamin", Title = "Introduction to Chatbots", Summary = "A short introduction into Chatbots created with the Microsoft Bot Framework"
            };

            chatbotPresentation.Tags.Add("C #");
            chatbotPresentation.Tags.Add("Bot Framework");
            chatbotPresentation.Tags.Add("Azure");
            chatbotPresentation.Tags.Add("Machine Learning");

            var devNetwork1 = new DevNetwork {
                Date = new DateTime(2018, 03, 9, 13, 0, 0), Room = "Athen 5"
            };

            devNetwork1.Presentations.Add(chatbotPresentation);

            var restIntroduction = new Presentation {
                Presenter = "Lorenzo", Title = "REST APIs", Summary = "Introduction into REST APIs and why you should use them"
            };

            restIntroduction.Tags.Add("REST");
            var restExample = new Presentation {
                Presenter = "Lukas", Title = "Creating REST APIs with Asp.NET", Summary = "This presentation will show hands-on how to easily create a REST API with Asp.NET"
            };

            restExample.Tags.Add("C #");
            restExample.Tags.Add("Asp.NET");
            restExample.Tags.Add("REST");

            var devNetwork2 = new DevNetwork {
                Date = new DateTime(2018, 05, 21, 14, 0, 0), Room = "Boston"
            };

            devNetwork2.Presentations.Add(restIntroduction);
            devNetwork2.Presentations.Add(restExample);

            var iotWithTheRaspberryPi = new Presentation {
                Presenter = "Milos", Title = "Bringing the Internet of Things to the Raspberry PI", Summary = "Hands-on Session that explains how to use the Azure IoT Hub together with the Raspberry PI."
            };

            iotWithTheRaspberryPi.Tags.Add("Raspberry PI");
            iotWithTheRaspberryPi.Tags.Add("Azure");
            iotWithTheRaspberryPi.Tags.Add("Internet of Things");

            var securityPreseentation = new Presentation {
                Presenter = "Richard", Title = "Obviously some Security Topic", Summary = "Why Security Feature X should be used in ALL our Applications"
            };

            securityPreseentation.Tags.Add("Security");

            var devNetwork3 = new DevNetwork {
                Date = new DateTime(2018, 07, 12, 09, 0, 0), Room = "Brisbane"
            };

            devNetwork3.Presentations.Add(iotWithTheRaspberryPi);
            devNetwork3.Presentations.Add(securityPreseentation);

            devNetworks.Add(devNetwork1);
            devNetworks.Add(devNetwork2);
            devNetworks.Add(devNetwork3);
        }