Skip to content

Commit 4a405db

Browse files
Extended IResult interface
1 parent 87a048f commit 4a405db

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<ImplicitUsings>enable</ImplicitUsings>
55
<Nullable>enable</Nullable>
66
<IsPackable>true</IsPackable>
7-
<Version>2.1.16</Version>
7+
<Version>2.1.17</Version>
88
<Authors>Andrey Serdyuk</Authors>
99
<Company>TaskHub</Company>
1010
<PackageTags>#TaskHub</PackageTags>

TaskHub.Shared.Response/IResult.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@
33
public interface IResult
44
{
55
bool IsSuccess { get; }
6+
int ResultCode { get; }
7+
string Message { get; }
68
}

TaskHub.Shared.Response/Result.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
namespace TaskHub.Shared.Response;
22

3-
public class Result(int code, string message) : IResult
3+
public sealed class Result(int code, string message) : IResult
44
{
55
public bool IsSuccess => code == 0;
66
public int ResultCode => code;

0 commit comments

Comments
 (0)