コード例 #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);
            }
        }
コード例 #2
0
        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);
            }
        }