-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathButton.cs
More file actions
30 lines (24 loc) · 685 Bytes
/
Button.cs
File metadata and controls
30 lines (24 loc) · 685 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
namespace Botticelli.Controls.BasicControls;
public class Button : IControl
{
public Button()
{
}
public Button(string? content)
{
Content = content;
}
public string? Image { get; set; }
public string? Content { get; set; }
public Dictionary<string, string>? Params { get; set; } = new();
public Dictionary<string, Dictionary<string, object>>? MessengerSpecificParams { get; set; } = new();
public string? CallbackData
{
get => Params?["CallbackData"];
set
{
Params ??= new Dictionary<string, string>();
if (value != null) Params["CallbackData"] = value;
}
}
}