Compare commits
4 Commits
0bc7abb274
...
3500db98c2
| Author | SHA1 | Date | |
|---|---|---|---|
| 3500db98c2 | |||
|
|
cec110d972 | ||
| bb92cd477d | |||
|
|
7d51340b0b |
@@ -0,0 +1,6 @@
|
||||
using MessagePack;
|
||||
|
||||
namespace LightlessSync.API.Dto.Group;
|
||||
|
||||
[MessagePackObject(keyAsPropertyName: true)]
|
||||
public record GroupProfileAvailabilityRequest(string GID);
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
using MessagePack;
|
||||
|
||||
namespace LightlessSync.API.Dto.User;
|
||||
[MessagePackObject(keyAsPropertyName: true)]
|
||||
public record UserProfileAvailabilityRequest(string UID);
|
||||
@@ -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, int[]? Tags) : UserDto(User);
|
||||
public record UserProfileDto(UserData User, bool Disabled, bool? IsNSFW, string? ProfilePictureBase64, string? BannerPictureBase64, string? Description, int[]? Tags) : UserDto(User);
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user