/// <summary> /// <see cref="PromptStyler.Apply{T}(ref Message, string, IList{T})"/>. /// </summary> /// <typeparam name="T"> The type of the options.</typeparam> /// <param name="message"> The message.</param> /// <param name="prompt"> The prompt.</param> /// <param name="options"> The options.</param> /// <param name="promptStyle"> The prompt style.</param> public static void Apply <T>(ref Message message, string prompt, IList <T> options, PromptStyle promptStyle) { var styler = new PromptStyler(promptStyle); styler.Apply(ref message, prompt, options); }
/// <summary> /// <see cref="PromptStyler.Apply(ref IMessageActivity, string)"/>. /// </summary> /// <typeparam name="T"> The type of the options.</typeparam> /// <param name="message"> The message.</param> /// <param name="prompt"> The prompt.</param> /// <param name="options"> The options.</param> /// <param name="promptStyle"> The prompt style.</param> /// <param name="descriptions">Descriptions for each option.</param> public static void Apply <T>(ref IMessageActivity message, string prompt, IReadOnlyList <T> options, PromptStyle promptStyle, IReadOnlyList <string> descriptions = null) { var styler = new PromptStyler(promptStyle); styler.Apply(ref message, prompt, options, descriptions); }