session-companion/SessionCompanion/SessionCompanion.ViewModels/ApiResponses/ErrorResponse.cs

23 lines
488 B
C#
Raw Normal View History

2020-12-10 17:34:30 +01:00
using System.Text.Json;
namespace SessionCompanion.ViewModels.ApiResponses
{
public class ErrorResponse
{
/// <summary>
/// Kod błędu
/// </summary>
public int StatusCode { get; set; }
/// <summary>
/// Wiadomość błędu do pokazania
/// </summary>
public string Message { get; set; }
public override string ToString()
{
return JsonSerializer.Serialize(this);
}
}
}