using Newtonsoft.Json; using ProtoBuf; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace GrpcShared.DTO.TopItem { [ProtoContract] public class TopItemResponse : StatusCodeMessage { [ProtoMember(1)] [JsonProperty("items")] public Item[]? Items { get; set; } [ProtoMember(2)] [JsonProperty("href")] public Uri? Href { get; set; } } [ProtoContract] public partial class Item { [ProtoMember(1)] [JsonProperty("id")] public string? Id { get; set; } [ProtoMember(2)] [JsonProperty("images")] public Image[]? Images { get; set; } [ProtoMember(3)] [JsonProperty("name")] public string? Name { get; set; } [ProtoMember(4)] [JsonProperty("uri")] public string? Uri { get; set; } } [ProtoContract] public partial class Image { [ProtoMember(1)] [JsonProperty("height")] public int? Height { get; set; } [ProtoMember(2)] [JsonProperty("url")] public Uri? Url { get; set; } [ProtoMember(3)] [JsonProperty("width")] public int? Width { get; set; } } }