session-companion/SessionCompanion/SessionCompanion.Extensions/ApiErrors/ErrorDetails.cs

27 lines
581 B
C#
Raw Normal View History

2020-12-10 15:28:00 +01:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.Json;
using System.Threading.Tasks;
namespace SessionCompanion.Extensions.ApiErrors
{
public class ErrorDetails
{
/// <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);
}
}
}