| | 1 | | using System; |
| | 2 | | using System.Collections.Generic; |
| | 3 | | using System.Text; |
| | 4 | |
|
| | 5 | | namespace MUNity.Schema |
| | 6 | | { |
| | 7 | | public abstract class AbstractResponse |
| | 8 | | { |
| | 9 | | public bool HasError { get; set; } |
| | 10 | |
|
| | 11 | | public List<ResponseError> Errors { get; set; } = new List<ResponseError>(); |
| | 12 | | } |
| | 13 | |
|
| | 14 | | public class ResponseError |
| | 15 | | { |
| 0 | 16 | | public ErrorTypes ErrorType { get; set; } |
| | 17 | |
|
| 0 | 18 | | public string ParameterName { get; set; } |
| | 19 | |
|
| 0 | 20 | | public string Description { get; set; } |
| | 21 | | } |
| | 22 | |
|
| | 23 | | public enum ErrorTypes |
| | 24 | | { |
| | 25 | | NoPermission, |
| | 26 | | InvalidData, |
| | 27 | | MissingData, |
| | 28 | | Warning |
| | 29 | | } |
| | 30 | | } |