bloxstrap/Bloxstrap/Models/APIs/Roblox/UserInfoResponse.cs
axel 55f5ef48e8
Show account on discord rich presence (#2255)
* add functionality for grabbing userid

* Create UserInfoResponse.cs

* add user pfp small image thingy

* add missing semicolons

* get rid of semicolons

* debugging (remove later)

* make properties nullable

* forgot to put dollar sign before interpolated string

* make properties that cant be nullable not nullable

* more debugging

* remove thing

* remove other thing

* remove thing (again) (again)

* remove thing (again) (again) (again)

* add space between username and displayname to make it more visually pleasing

* matt review changes (better code readability)

* add strings for show account on profile

* add AccountShownOnProfile setting

* add DiscordActivityJoinEnabled to integrations viewmodel

* fix accidentally swapping 2 variables

* refrence correct variables

* refrence correct variables (again)

* add showaccountonprofile strings

* add option to integrations page

* add missing < that somehow got lost

* make that its own option

* dont invert that value

* dont invert that (again)

* Update IntegrationsViewModel.cs

* fix grammatical issue in string

* move else to new line

* fix merge conflicts

* move gameJoinLoadTime check

* matt review changes

* handle if parsing userid fails

---------

Co-authored-by: pizzaboxer <pizzaboxer@pizzaboxer.xyz>
2024-09-28 21:52:12 +01:00

27 lines
750 B
C#

namespace Bloxstrap.Models.RobloxApi
{
/// <summary>
/// Roblox.Web.Responses.Users.UserInfoResponse
/// </summary>
public class UserInfoResponse
{
[JsonPropertyName("description")]
public string ProfileDescription { get; set; } = null!;
[JsonPropertyName("created")]
public string JoinDate { get; set; } = null!;
[JsonPropertyName("isBanned")]
public bool IsBanned { get; set; }
[JsonPropertyName("hasVerifiedBadge")]
public bool HasVerifiedBadge { get; set; }
[JsonPropertyName("name")]
public string Username { get; set; } = null!;
[JsonPropertyName("displayName")]
public string DisplayName { get; set; } = null!;
}
}