lucidiot/HabitSharp
lucidiot
/
HabitSharp
Archived
1
0
Fork 0

API result class

This commit is contained in:
Lucidiot 2018-08-31 00:42:52 +02:00
parent f61bd66cf2
commit 04e1c7ff40
No known key found for this signature in database
GPG Key ID: AE3F7205692FA205
1 changed files with 11 additions and 0 deletions

11
Result.cs Normal file
View File

@ -0,0 +1,11 @@
using System.Collections.Generic;
namespace HabitSharp {
public class Result<T> {
public bool Success { get; set; }
public T Data { get; set; }
public List<Notification> Notifications { get; set; }
}
public class ListResult<T> : Result<List<T>> { }
}