mirror of
https://github.com/CyberL1/MyMcRealms.git
synced 2025-06-28 17:39:42 -04:00
Import from Github
This commit is contained in:
14
Minecraft-Realms-Emulator/Entities/Backup.cs
Normal file
14
Minecraft-Realms-Emulator/Entities/Backup.cs
Normal 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; }
|
||||
}
|
||||
}
|
13
Minecraft-Realms-Emulator/Entities/Configuration.cs
Normal file
13
Minecraft-Realms-Emulator/Entities/Configuration.cs
Normal 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;
|
||||
}
|
||||
}
|
10
Minecraft-Realms-Emulator/Entities/Connection.cs
Normal file
10
Minecraft-Realms-Emulator/Entities/Connection.cs
Normal 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; }
|
||||
}
|
||||
}
|
11
Minecraft-Realms-Emulator/Entities/Invite.cs
Normal file
11
Minecraft-Realms-Emulator/Entities/Invite.cs
Normal 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; }
|
||||
}
|
||||
}
|
14
Minecraft-Realms-Emulator/Entities/Player.cs
Normal file
14
Minecraft-Realms-Emulator/Entities/Player.cs
Normal 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; }
|
||||
}
|
||||
}
|
8
Minecraft-Realms-Emulator/Entities/Slot.cs
Normal file
8
Minecraft-Realms-Emulator/Entities/Slot.cs
Normal file
@ -0,0 +1,8 @@
|
||||
namespace Minecraft_Realms_Emulator.Entities
|
||||
{
|
||||
public class Slot
|
||||
{
|
||||
public int SlotId { get; set; }
|
||||
public string Options { get; set; } = "{}";
|
||||
}
|
||||
}
|
11
Minecraft-Realms-Emulator/Entities/Subscription.cs
Normal file
11
Minecraft-Realms-Emulator/Entities/Subscription.cs
Normal 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";
|
||||
}
|
||||
}
|
24
Minecraft-Realms-Emulator/Entities/World.cs
Normal file
24
Minecraft-Realms-Emulator/Entities/World.cs
Normal 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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user