Beispiel #1
0
        private static async Task AddListCardAttachment(Activity replyActivity, System.Collections.Generic.IEnumerable <Baggage> baggages)
        {
            var card = O365CardHelper.GetListCardAttachment(baggages);

            try
            {
                replyActivity.Attachments.Add(card);
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex);
            }
        }
        private static void AddPassengersInReply(Activity replyActivity, System.Collections.Generic.IEnumerable <Passenger> passengers, string title)
        {
            var card = O365CardHelper.GetListCardAttachment(passengers, title + $" - {passengers.Count()}");

            try
            {
                replyActivity.Attachments.Add(card);
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex);
            }
        }