This commit is contained in:
2024-01-23 15:41:59 +01:00
Unverified
parent 5d5a69ccf7
commit 3b2b4c9b7e
76 changed files with 4100 additions and 888 deletions

View File

@@ -12,21 +12,21 @@ namespace SecureBank.Common
{
[JsonProperty("message")]
[JsonPropertyName("message")]
public string Message { get; set; }
public string? Message { get; set; }
[JsonProperty("success")]
[JsonPropertyName("success")]
public bool Success { get; set; }
[JsonProperty("status")]
[JsonPropertyName("status")]
public ResponseStatus Status { get; set; } = ResponseStatus.Ok;
[JsonProperty("action_code")]
[JsonPropertyName("action_code")]
public int ActionCode { get; set; }
public int? ActionCode { get; set; }
}
public class APIResponse<T> : APIResponse
{
[JsonProperty("data")]
[JsonPropertyName("data")]
public T Data { get; set; }
public T? Data { get; set; }
}
}