/// <summary> /// Gets error message details adaptive card. /// </summary> /// <param name="localizer">The current cultures' string localizer.</param> /// <returns>Returns edit ticket adaptive card.</returns> public static TaskModuleResponse GetClosedErrorAdaptiveCard(IStringLocalizer <Strings> localizer) { return(new TaskModuleResponse { Task = new TaskModuleContinueResponse { Value = new TaskModuleTaskInfo() { Card = EditRequestCard.GetClosedErrorCard(localizer), Height = ErrorMessageTaskModuleHeight, Width = ErrorMessageTaskModuleWidth, Title = localizer.GetString("EditRequestTitle"), }, }, }); }
/// <summary> /// Gets edit ticket details adaptive card. /// </summary> /// <param name="cardConfigurationStorageProvider">Card configuration.</param> /// <param name="ticketDetail">Details of the ticket to be edited.</param> /// <param name="localizer">The current cultures' string localizer.</param> /// <param name="existingTicketDetail">Existing ticket details.</param> /// <returns>Returns edit ticket adaptive card.</returns> public static TaskModuleResponse GetEditTicketAdaptiveCard(ICardConfigurationStorageProvider cardConfigurationStorageProvider, TicketDetail ticketDetail, IStringLocalizer <Strings> localizer, TicketDetail existingTicketDetail = null) { var cardTemplate = cardConfigurationStorageProvider?.GetConfigurationsByCardIdAsync(ticketDetail?.CardId).Result; return(new TaskModuleResponse { Task = new TaskModuleContinueResponse { Value = new TaskModuleTaskInfo() { Card = EditRequestCard.GetEditRequestCard(ticketDetail, cardTemplate, localizer, existingTicketDetail), Height = TaskModuleHeight, Width = TaskModuleWidth, Title = localizer.GetString("EditRequestTitle"), }, }, }); }