Skip to content

Commit

Permalink
Add RequestType enum and property (#165)
Browse files Browse the repository at this point in the history
  • Loading branch information
hbulens committed Jun 12, 2024
1 parent f855b13 commit 806650e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/Models/ActionUri.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ public class ActionUri : IImportRequestable
[ImportParameter("DefaultUrl")]
public bool Default { get; set; }

[ImportParameter(nameof(RequestType))]
public HttpRequestType RequestType { get; set; }

ImportRequest IImportRequestable.ToImportRequest(TransactionType transactionType)
=> transactionType switch
{
Expand Down
8 changes: 8 additions & 0 deletions src/core/Models/Constants/HttpRequestType.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace Dime.Scheduler.Entities
{
public enum HttpRequestType
{
Get = 1,
Post = 2
}
}

0 comments on commit 806650e

Please sign in to comment.