5 Commits

Author SHA1 Message Date
defnotken
cec110d972 Initial Bot Cleanup + Profile Toggling 2025-10-29 17:23:07 -05:00
bb92cd477d Merge pull request 'Added banner info' (#11) from banner-profile into main
Reviewed-on: #11
2025-10-21 22:47:27 +02:00
CakeAndBanana
7d51340b0b Added banner info 2025-10-20 20:45:34 +02:00
0bc7abb274 Merge pull request 'tag-changes' (#10) from tag-changes into main
Reviewed-on: #10
Reviewed-by: defnotken <defnotken@noreply.git.lightless-sync.org>
2025-10-19 21:20:45 +02:00
CakeAndBanana
9ac91682e6 Added tags for DTO on user profiles 2025-10-19 20:57:31 +02:00
5 changed files with 16 additions and 2 deletions

View File

@@ -0,0 +1,6 @@
using MessagePack;
namespace LightlessSync.API.Dto.Group;
[MessagePackObject(keyAsPropertyName: true)]
public record GroupProfileAvailabilityRequest(string GID);

View File

@@ -2,5 +2,5 @@
namespace LightlessSync.API.Dto.Group
{
public record GroupProfileDto(GroupData Group, string? Description, int[]? Tags, string? PictureBase64, bool? IsNsfw, bool? IsDisabled) : GroupDto(Group);
public record GroupProfileDto(GroupData Group, string? Description, int[]? Tags, string? PictureBase64, string? BannerBase64, bool? IsNsfw, bool? IsDisabled) : GroupDto(Group);
}

View File

@@ -0,0 +1,5 @@
using MessagePack;
namespace LightlessSync.API.Dto.User;
[MessagePackObject(keyAsPropertyName: true)]
public record UserProfileAvailabilityRequest(string UID);

View File

@@ -4,4 +4,4 @@ using MessagePack;
namespace LightlessSync.API.Dto.User;
[MessagePackObject(keyAsPropertyName: true)]
public record UserProfileDto(UserData User, bool Disabled, bool? IsNSFW, string? ProfilePictureBase64, string? Description) : UserDto(User);
public record UserProfileDto(UserData User, bool Disabled, bool? IsNSFW, string? ProfilePictureBase64, string? BannerPictureBase64, string? Description, int[]? Tags) : UserDto(User);

View File

@@ -13,9 +13,12 @@ public class LightlessAuth
public const string OAuth_GetUIDs = "getUIDs";
public const string OAuth_GetDiscordOAuthToken = "getDiscordOAuthToken";
public const string User = "/user";
public const string Group = "/group";
public const string User_Unban_Discord = "unbanDiscord";
public const string User_Unban_Uid = "unbanUID";
public const string Ban_Uid = "ban";
public const string Disable_Profile = "disableProfile";
public const string Enable_Profile = "enableProfile";
public static Uri AuthFullPath(Uri baseUri) => new Uri(baseUri, Auth + "/" + Auth_CreateIdent);
public static Uri AuthWithOauthFullPath(Uri baseUri) => new Uri(baseUri, OAuth + "/" + OAuth_CreateOAuth);
public static Uri RenewTokenFullPath(Uri baseUri) => new Uri(baseUri, Auth + "/" + Auth_RenewToken);