Added syncshell profile related items.

This commit is contained in:
CakeAndBanana
2025-10-10 06:42:59 +02:00
parent 46db5c87e0
commit 98c3a2c7f8
13 changed files with 91 additions and 42 deletions

View File

@@ -0,0 +1,7 @@
namespace LightlessSync.Services;
public record LightlessUserProfileData(bool IsFlagged, bool IsNSFW, string Base64ProfilePicture, string Base64SupporterPicture, string Description)
{
public Lazy<byte[]> ImageData { get; } = new Lazy<byte[]>(Convert.FromBase64String(Base64ProfilePicture));
public Lazy<byte[]> SupporterImageData { get; } = new Lazy<byte[]>(string.IsNullOrEmpty(Base64SupporterPicture) ? [] : Convert.FromBase64String(Base64SupporterPicture));
}