lampac-ukraine/Unimay/Models/SearchResponse.cs
2025-09-20 11:47:28 +03:00

41 lines
1.0 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System.Collections.Generic;
using System.Text.Json.Serialization;
namespace Unimay.Models
{
public class SearchResponse
{
[JsonPropertyName("content")]
public List<ReleaseInfo> Content { get; set; }
[JsonPropertyName("totalElements")]
public int TotalElements { get; set; }
}
public class ReleaseInfo
{
[JsonPropertyName("code")]
public string Code { get; set; }
[JsonPropertyName("title")]
public string Title { get; set; }
[JsonPropertyName("year")]
public string Year { get; set; }
[JsonPropertyName("type")]
public string Type { get; set; } // "Фільм" або "Телесеріал"
[JsonPropertyName("names")]
public Names Names { get; set; }
}
public class Names
{
[JsonPropertyName("ukr")]
public string Ukr { get; set; }
[JsonPropertyName("eng")]
public string Eng { get; set; }
}
}