Compare commits
11 Commits
1-line-cha
...
3500db98c2
| Author | SHA1 | Date | |
|---|---|---|---|
| 3500db98c2 | |||
|
|
cec110d972 | ||
| bb92cd477d | |||
|
|
7d51340b0b | ||
| 0bc7abb274 | |||
|
|
9ac91682e6 | ||
|
|
01688b27bc | ||
| 418e647ef8 | |||
| 7221cd81e4 | |||
| f6b0b999cf | |||
|
|
75469f6d5c |
@@ -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
|
namespace LightlessSync.API.Dto.Group
|
||||||
{
|
{
|
||||||
public record GroupProfileDto(GroupData Group, string? Description, string? Tags, string? PictureBase64) : 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;
|
namespace LightlessSync.API.Dto.User;
|
||||||
|
|
||||||
[MessagePackObject(keyAsPropertyName: true)]
|
[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);
|
||||||
@@ -13,9 +13,12 @@ public class LightlessAuth
|
|||||||
public const string OAuth_GetUIDs = "getUIDs";
|
public const string OAuth_GetUIDs = "getUIDs";
|
||||||
public const string OAuth_GetDiscordOAuthToken = "getDiscordOAuthToken";
|
public const string OAuth_GetDiscordOAuthToken = "getDiscordOAuthToken";
|
||||||
public const string User = "/user";
|
public const string User = "/user";
|
||||||
|
public const string Group = "/group";
|
||||||
public const string User_Unban_Discord = "unbanDiscord";
|
public const string User_Unban_Discord = "unbanDiscord";
|
||||||
public const string User_Unban_Uid = "unbanUID";
|
public const string User_Unban_Uid = "unbanUID";
|
||||||
public const string Ban_Uid = "ban";
|
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 AuthFullPath(Uri baseUri) => new Uri(baseUri, Auth + "/" + Auth_CreateIdent);
|
||||||
public static Uri AuthWithOauthFullPath(Uri baseUri) => new Uri(baseUri, OAuth + "/" + OAuth_CreateOAuth);
|
public static Uri AuthWithOauthFullPath(Uri baseUri) => new Uri(baseUri, OAuth + "/" + OAuth_CreateOAuth);
|
||||||
public static Uri RenewTokenFullPath(Uri baseUri) => new Uri(baseUri, Auth + "/" + Auth_RenewToken);
|
public static Uri RenewTokenFullPath(Uri baseUri) => new Uri(baseUri, Auth + "/" + Auth_RenewToken);
|
||||||
|
|||||||
Reference in New Issue
Block a user