Skip to content

Commit 1ad6478

Browse files
authoredApr 8, 2024
Merge pull request #66 from DiyorMarket/CreateHelper
Create helper
2 parents a92be4f + aec872c commit 1ad6478

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed
 

‎Inflow.Api/Helper/ResourceLink.cs

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
namespace Inflow.Api.Helper
2+
{
3+
public class ResourceLink
4+
{
5+
public string? Rel { get; set; }
6+
public string? Href { get; set; }
7+
public string? Method { get; set; }
8+
9+
public ResourceLink()
10+
{
11+
}
12+
13+
public ResourceLink(string? rel, string? href)
14+
{
15+
Rel = rel;
16+
Href = href;
17+
}
18+
19+
public ResourceLink(string? rel, string? href, string? method)
20+
: this(rel, href)
21+
{
22+
Method = method;
23+
}
24+
}
25+
}
26+

‎Inflow.Api/Helper/ResourceType.cs

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
namespace Inflow.Api.Helper
2+
{
3+
public enum ResourceType
4+
{
5+
CurrentPage,
6+
NextPage,
7+
PreviousPage,
8+
}
9+
}

0 commit comments

Comments
 (0)