bloxstrap/Bloxstrap/Models/APIs/Roblox/ThumbnailRequest.cs
Matt c1842c0443
Replace AssetDelivery API with Thumbnails API for Discord RPC images (#4947)
* replace assetdelivery with thumbnails for rpc

* update GetThumbnailUrlAsync logging

* fix build error
2025-03-28 19:33:51 +00:00

35 lines
1.1 KiB
C#

namespace Bloxstrap.Models.APIs.Roblox
{
internal class ThumbnailRequest
{
[JsonPropertyName("requestId")]
public string? RequestId { get; set; }
[JsonPropertyName("targetId")]
public ulong TargetId { get; set; }
/// <summary>
/// TODO: make this an enum
/// List of valid types can be found at https://thumbnails.roblox.com//docs/index.html
/// </summary>
[JsonPropertyName("type")]
public string Type { get; set; } = "Avatar";
/// <summary>
/// List of valid sizes can be found at https://thumbnails.roblox.com//docs/index.html
/// </summary>
[JsonPropertyName("size")]
public string Size { get; set; } = "30x30";
/// <summary>
/// TODO: make this an enum
/// List of valid types can be found at https://thumbnails.roblox.com//docs/index.html
/// </summary>
[JsonPropertyName("format")]
public string Format { get; set; } = "Png";
[JsonPropertyName("isCircular")]
public bool IsCircular { get; set; } = true;
}
}