Merge branch 'master' of https://github.com/SciSharp/BotSharp into features/add-google-api
This commit is contained in:
commit
919a6ed968
|
|
@ -18,6 +18,9 @@ public class ButtonTemplateMessage : IRichMessage, ITemplateMessage
|
|||
|
||||
[JsonPropertyName("buttons")]
|
||||
public ButtonElement[] Buttons { get; set; } = new ButtonElement[0];
|
||||
|
||||
[JsonPropertyName("is_horizontal")]
|
||||
public bool IsHorizontal { get; set; }
|
||||
}
|
||||
|
||||
public class ButtonElement
|
||||
|
|
@ -34,4 +37,7 @@ public class ButtonElement
|
|||
public string? Payload { get; set; }
|
||||
|
||||
public string Title { get; set; } = string.Empty;
|
||||
|
||||
[JsonPropertyName("is_primary")]
|
||||
public bool IsPrimary { get; set; }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,6 +16,9 @@ public class GenericTemplateMessage<T> : IRichMessage, ITemplateMessage
|
|||
[JsonPropertyName("elements")]
|
||||
public List<T> Elements { get; set; } = new List<T>();
|
||||
|
||||
[JsonPropertyName("is_horizontal")]
|
||||
public bool IsHorizontal { get; set; }
|
||||
|
||||
[JsonPropertyName("element_type")]
|
||||
public string ElementType => typeof(T).Name;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,7 +11,12 @@ public class MultiSelectTemplateMessage : IRichMessage, ITemplateMessage
|
|||
|
||||
[JsonPropertyName("template_type")]
|
||||
public string TemplateType => TemplateTypeEnum.MultiSelect;
|
||||
|
||||
[JsonPropertyName("options")]
|
||||
public List<OptionElement> Options { get; set; } = new List<OptionElement>();
|
||||
|
||||
[JsonPropertyName("is_horizontal")]
|
||||
public bool IsHorizontal { get; set; }
|
||||
}
|
||||
|
||||
public class OptionElement
|
||||
|
|
|
|||
Loading…
Reference in a new issue