27 lines
581 B
C#
27 lines
581 B
C#
|
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);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|