mirror of
https://github.com/Cleanuparr/Cleanuparr.git
synced 2026-01-04 11:58:04 -05:00
21 lines
468 B
C#
21 lines
468 B
C#
using Newtonsoft.Json;
|
|
|
|
namespace Cleanuparr.Infrastructure.Features.Notifications.Pushover;
|
|
|
|
public sealed record PushoverResponse
|
|
{
|
|
[JsonProperty("status")]
|
|
public int Status { get; init; }
|
|
|
|
[JsonProperty("request")]
|
|
public string? Request { get; init; }
|
|
|
|
[JsonProperty("receipt")]
|
|
public string? Receipt { get; init; }
|
|
|
|
[JsonProperty("errors")]
|
|
public List<string>? Errors { get; init; }
|
|
|
|
public bool IsSuccess => Status == 1;
|
|
}
|