1
1
mirror of https://github.com/CyberL1/MyMcRealms.git synced 2024-12-25 05:48:23 -05:00

chore: remove unused code, fix a typo

This commit is contained in:
CyberL1 2024-11-23 14:45:35 +01:00
parent 2245a95d55
commit ef35843140
4 changed files with 4 additions and 16 deletions

View File

@ -1,9 +0,0 @@
namespace MyMcRealms
{
public enum Compatility
{
COMPATIBLE,
OTHER,
OUTDATED
}
}

View File

@ -45,7 +45,7 @@ namespace MyMcRealms.Controllers
ErrorResponse errorResponse = new() ErrorResponse errorResponse = new()
{ {
ErrorCode = 400, ErrorCode = 400,
ErrorMsg = "Player already whitelisteed" ErrorMsg = "Player already whitelisted"
}; };
return BadRequest(errorResponse); return BadRequest(errorResponse);

View File

@ -18,7 +18,7 @@ namespace MyMcRealms.Controllers
[HttpGet("client/compatible")] [HttpGet("client/compatible")]
public string GetCompatible() public string GetCompatible()
{ {
return Compatility.COMPATIBLE.ToString(); return "COMPATIBLE";
} }
[HttpGet("v1/news")] [HttpGet("v1/news")]
@ -26,7 +26,7 @@ namespace MyMcRealms.Controllers
{ {
var news = new NewsResponse var news = new NewsResponse
{ {
NewsLink = "https://github.com/CyberL1/Minecraft-Realms-Emulator", NewsLink = "https://github.com/CyberL1/MyMcRealms",
}; };
return news; return news;

View File

@ -1,11 +1,8 @@
using System.Text.Json; namespace MyMcRealms.Responses
namespace MyMcRealms.Responses
{ {
public class WorldResponse public class WorldResponse
{ {
public int Id { get; set; } public int Id { get; set; }
// public Subscription? Subscription { get; set; }
public string? Owner { get; set; } public string? Owner { get; set; }
public string? OwnerUUID { get; set; } public string? OwnerUUID { get; set; }
public string? Name { get; set; } public string? Name { get; set; }