23 lines
488 B
C#
23 lines
488 B
C#
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);
|
|
}
|
|
}
|
|
}
|