2022-02-22 11:51:59 +00:00
|
|
|
namespace Elsa.Modules.Http.Models;
|
|
|
|
|
|
2022-03-07 11:01:27 +00:00
|
|
|
public record HttpBookmarkData
|
2022-02-22 11:51:59 +00:00
|
|
|
{
|
|
|
|
|
private readonly string _path = default!;
|
|
|
|
|
private readonly string _method = default!;
|
|
|
|
|
|
2022-03-07 11:01:27 +00:00
|
|
|
public HttpBookmarkData(string path, string method)
|
2022-02-22 11:51:59 +00:00
|
|
|
{
|
|
|
|
|
Path = path;
|
|
|
|
|
Method = method;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string Path
|
|
|
|
|
{
|
|
|
|
|
get => _path;
|
|
|
|
|
init => _path = value.ToLowerInvariant();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string Method
|
|
|
|
|
{
|
|
|
|
|
get => _method;
|
|
|
|
|
init => _method = value.ToLowerInvariant();
|
|
|
|
|
}
|
|
|
|
|
}
|