Lots of additions and restructuring
This commit is contained in:
39
TOOHUCardAPI/DTO/GenericResponses.cs
Normal file
39
TOOHUCardAPI/DTO/GenericResponses.cs
Normal file
@@ -0,0 +1,39 @@
|
||||
namespace TOOHUCardAPI.DTO
|
||||
{
|
||||
public class InvalidUserResponse : AbstractResponse
|
||||
{
|
||||
public override string Code => "0001";
|
||||
|
||||
public override string Message => "Invalid User";
|
||||
}
|
||||
|
||||
public class OkResponse : AbstractResponse
|
||||
{
|
||||
public override string Code => "0000";
|
||||
|
||||
public override string Message => string.Empty;
|
||||
}
|
||||
|
||||
public class InsufficientPointsResponse : AbstractResponse
|
||||
{
|
||||
public override string Code => "0002";
|
||||
|
||||
public override string Message => "Insufficient points";
|
||||
|
||||
}
|
||||
|
||||
public class NotFirstWinResponse : AbstractResponse
|
||||
{
|
||||
public override string Code => "0003";
|
||||
|
||||
public override string Message => "Not a first win";
|
||||
|
||||
}
|
||||
|
||||
public class InvalidCardResponse : AbstractResponse
|
||||
{
|
||||
public override string Code => "0004";
|
||||
|
||||
public override string Message => "Invalid card";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user