2024-04-08 15:09:08 +00:00
|
|
|
using BotSharp.Abstraction.Browsing.Enums;
|
|
|
|
|
|
2024-03-08 13:19:13 +00:00
|
|
|
namespace BotSharp.Abstraction.Browsing.Models;
|
|
|
|
|
|
|
|
|
|
public class ElementActionArgs
|
|
|
|
|
{
|
2024-04-08 15:09:08 +00:00
|
|
|
private BroswerActionEnum _action;
|
|
|
|
|
public BroswerActionEnum Action => _action;
|
|
|
|
|
|
2024-04-16 04:48:22 +00:00
|
|
|
private string? _content;
|
|
|
|
|
public string? Content => _content;
|
2024-04-08 15:09:08 +00:00
|
|
|
|
2024-04-16 04:48:22 +00:00
|
|
|
private ElementPosition? _position;
|
|
|
|
|
public ElementPosition? Position => _position;
|
|
|
|
|
|
|
|
|
|
public ElementActionArgs(BroswerActionEnum action, ElementPosition? position = null)
|
2024-04-08 15:09:08 +00:00
|
|
|
{
|
|
|
|
|
_action = action;
|
2024-04-16 04:48:22 +00:00
|
|
|
_position = position;
|
2024-04-08 15:09:08 +00:00
|
|
|
}
|
2024-03-08 13:19:13 +00:00
|
|
|
|
2024-04-08 15:09:08 +00:00
|
|
|
public ElementActionArgs(BroswerActionEnum action, string content)
|
2024-03-08 13:19:13 +00:00
|
|
|
{
|
|
|
|
|
_action = action;
|
2024-04-08 15:09:08 +00:00
|
|
|
_content = content;
|
2024-03-08 13:19:13 +00:00
|
|
|
}
|
|
|
|
|
}
|