1
1
mirror of https://github.com/CyberL1/MyMcRealms.git synced 2025-06-29 09:59:42 -04:00

Rename to MyMcRealms

This commit is contained in:
2024-04-20 09:33:06 +02:00
parent aa1e118775
commit 0ab2090521
65 changed files with 1 additions and 1 deletions

View File

@ -0,0 +1,14 @@
using System.Text.Json;
namespace Minecraft_Realms_Emulator.Entities
{
public class Backup
{
public int Id { get; set; }
public World World { get; set; }
public string BackupId { get; set; }
public long LastModifiedDate { get; set; }
public int Size { get; set; }
public JsonDocument Metadata { get; set; }
}
}

View File

@ -0,0 +1,13 @@
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations.Schema;
namespace Minecraft_Realms_Emulator.Entities
{
[PrimaryKey(nameof(Key))]
public class Configuration
{
public string Key { get; set; } = string.Empty;
[Column(TypeName = "jsonb")]
public dynamic Value { get; set; } = string.Empty;
}
}

View File

@ -0,0 +1,10 @@
namespace Minecraft_Realms_Emulator.Entities
{
public class Connection
{
public int Id { get; set; }
public World World { get; set; }
public string Address { get; set; } = string.Empty;
public bool PendingUpdate { get; set; }
}
}

View File

@ -0,0 +1,11 @@
namespace Minecraft_Realms_Emulator.Entities
{
public class Invite
{
public int Id { get; set; }
public string InvitationId { get; set; }= string.Empty;
public string RecipeintUUID { get; set; } = string.Empty;
public World World { get; set; }
public DateTime Date { get; set; }
}
}

View File

@ -0,0 +1,14 @@
namespace Minecraft_Realms_Emulator.Entities
{
public class Player
{
public int Id { get; set; }
public string Name { get; set; } = string.Empty;
public string Uuid { get; set; } = string.Empty;
public bool Operator { get; set; }
public bool Accepted { get; set; }
public bool Online { get; set; }
public string Permission { get; set; } = "MEMBER";
public World World { get; set; }
}
}

View File

@ -0,0 +1,8 @@
namespace Minecraft_Realms_Emulator.Entities
{
public class Slot
{
public int SlotId { get; set; }
public string Options { get; set; } = "{}";
}
}

View File

@ -0,0 +1,11 @@
namespace Minecraft_Realms_Emulator.Entities
{
public class Subscription
{
public int Id { get; set; }
public int WorldId { get; set; }
public World World { get; set; } = null!;
public DateTime StartDate { get; set; } = DateTime.Now;
public string SubscriptionType { get; set; } = "NORMAL";
}
}

View File

@ -0,0 +1,24 @@
using System.Text.Json;
namespace Minecraft_Realms_Emulator.Entities
{
public class World
{
public int Id { get; set; }
public Subscription? Subscription { get; set; }
public string? Owner { get; set; }
public string? OwnerUUID { get; set; }
public string? Name { get; set; }
public string? Motd { get; set; }
public string State { get; set; } = "OPEN";
public string WorldType { get; set; } = "NORMAL";
public List<Player> Players { get; set; } = [];
public int MaxPlayers { get; set; } = 10;
public string? MinigameName { get; set; }
public int? MinigameId { get; set; }
public string? MinigameImage { get; set; }
public int ActiveSlot { get; set; } = 1;
public JsonDocument[] Slots { get; set; } = [];
public bool Member { get; set; } = false;
}
}