mirror of
https://github.com/Cleanuparr/Cleanuparr.git
synced 2026-09-20 18:20:41 -04:00
21 lines
499 B
C#
21 lines
499 B
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace Cleanuparr.Infrastructure.Features.Notifications.Pushover;
|
|
|
|
public sealed record PushoverResponse
|
|
{
|
|
[JsonPropertyName("status")]
|
|
public int Status { get; init; }
|
|
|
|
[JsonPropertyName("request")]
|
|
public string? Request { get; init; }
|
|
|
|
[JsonPropertyName("receipt")]
|
|
public string? Receipt { get; init; }
|
|
|
|
[JsonPropertyName("errors")]
|
|
public List<string>? Errors { get; init; }
|
|
|
|
public bool IsSuccess => Status == 1;
|
|
}
|