move models to shared, make new admin project

This commit is contained in:
Lapis
2026-06-16 18:32:28 -04:00
parent ee98c4c369
commit c20d215ee0
106 changed files with 60428 additions and 5 deletions
+138
View File
@@ -0,0 +1,138 @@
using System.Text.Json.Serialization;
namespace CannedNet;
public class RoomTag
{
[JsonPropertyName("tag")]
public string Tag { get; set; } = "";
[JsonPropertyName("type")]
public int Type { get; set; }
}
public class Room
{
public int Id { get; set; }
[JsonPropertyName("roomId")]
public int RoomId { get; set; }
[JsonPropertyName("name")]
public string Name { get; set; } = "";
[JsonPropertyName("description")]
public string Description { get; set; } = "";
[JsonPropertyName("creatorAccountId")]
public int CreatorAccountId { get; set; }
[JsonPropertyName("imageName")]
public string ImageName { get; set; } = "";
[JsonPropertyName("state")]
public int State { get; set; }
[JsonPropertyName("accessibility")]
public int Accessibility { get; set; }
[JsonPropertyName("supportsLevelVoting")]
public bool SupportsLevelVoting { get; set; }
[JsonPropertyName("isRRO")]
public bool IsRRO { get; set; }
[JsonPropertyName("isDorm")]
public bool IsDorm { get; set; }
[JsonPropertyName("cloningAllowed")]
public bool CloningAllowed { get; set; }
[JsonPropertyName("supportsVRLow")]
public bool SupportsVRLow { get; set; }
[JsonPropertyName("supportsQuest2")]
public bool SupportsQuest2 { get; set; }
[JsonPropertyName("supportsMobile")]
public bool SupportsMobile { get; set; }
[JsonPropertyName("supportsScreens")]
public bool SupportsScreens { get; set; }
[JsonPropertyName("supportsWalkVR")]
public bool SupportsWalkVR { get; set; }
[JsonPropertyName("supportsTeleportVR")]
public bool SupportsTeleportVR { get; set; }
[JsonPropertyName("supportsJuniors")]
public bool SupportsJuniors { get; set; }
[JsonPropertyName("minLevel")]
public int MinLevel { get; set; }
[JsonPropertyName("warningMask")]
public int WarningMask { get; set; }
[JsonPropertyName("customWarning")]
public string? CustomWarning { get; set; }
[JsonPropertyName("disableMicAutoMute")]
public bool DisableMicAutoMute { get; set; }
[JsonPropertyName("disableRoomComments")]
public bool DisableRoomComments { get; set; }
[JsonPropertyName("encryptVoiceChat")]
public bool EncryptVoiceChat { get; set; }
[JsonPropertyName("createdAt")]
public DateTime CreatedAt { get; set; }
[JsonPropertyName("tags")]
public string Tags { get; set; } = "[]";
}
public class SubRoom
{
public int Id { get; set; }
public int RoomId { get; set; }
[JsonPropertyName("subRoomId")]
public int SubRoomId { get; set; }
[JsonPropertyName("name")]
public string Name { get; set; } = "";
[JsonPropertyName("dataBlob")]
public string DataBlob { get; set; } = "";
[JsonPropertyName("isSandbox")]
public bool IsSandbox { get; set; }
[JsonPropertyName("maxPlayers")]
public int MaxPlayers { get; set; }
[JsonPropertyName("accessibility")]
public int Accessibility { get; set; }
[JsonPropertyName("unitySceneId")]
public string UnitySceneId { get; set; } = "";
[JsonPropertyName("dataSavedAt")]
public DateTime? DataSavedAt { get; set; }
}
public class LoadScreen
{
public int Id { get; set; }
public int RoomId { get; set; }
[JsonPropertyName("imageUrl")]
public string ImageUrl { get; set; } = "";
[JsonPropertyName("tooltip")]
public string Tooltip { get; set; } = "";
[JsonPropertyName("isThumbnail")]
public bool IsThumbnail { get; set; }
}
public class PromoImage
{
public int Id { get; set; }
public int RoomId { get; set; }
[JsonPropertyName("imageUrl")]
public string ImageUrl { get; set; } = "";
[JsonPropertyName("tooltip")]
public string Tooltip { get; set; } = "";
[JsonPropertyName("sortOrder")]
public int SortOrder { get; set; }
}
public class PromoExternalContent
{
public int Id { get; set; }
public int RoomId { get; set; }
[JsonPropertyName("type")]
public int Type { get; set; }
[JsonPropertyName("url")]
public string Url { get; set; } = "";
[JsonPropertyName("tooltip")]
public string Tooltip { get; set; } = "";
}
public class RoomRole
{
public int Id { get; set; }
public int RoomId { get; set; }
[JsonPropertyName("accountId")]
public int AccountId { get; set; }
[JsonPropertyName("role")]
public int Role { get; set; }
[JsonPropertyName("invitedRole")]
public int InvitedRole { get; set; }
}
@@ -0,0 +1,43 @@
using System.Text.Json.Serialization;
namespace CannedNet;
public class RoomInstance
{
public int Id { get; set; }
public int OwnerAccountId { get; set; }
[JsonPropertyName("roomInstanceId")]
public int roomInstanceId { get; set; }
[JsonPropertyName("roomId")]
public int roomId { get; set; }
[JsonPropertyName("subRoomId")]
public int subRoomId { get; set; }
[JsonPropertyName("roomInstanceType")]
public int roomInstanceType { get; set; }
[JsonPropertyName("location")]
public string location { get; set; } = "";
[JsonPropertyName("dataBlob")]
public string dataBlob { get; set; } = "";
[JsonPropertyName("eventId")]
public int eventId { get; set; }
[JsonPropertyName("clubId")]
public int clubId { get; set; }
[JsonPropertyName("roomCode")]
public string roomCode { get; set; } = "";
[JsonPropertyName("photonRegionId")]
public string photonRegionId { get; set; } = "";
[JsonPropertyName("photonRoomId")]
public string photonRoomId { get; set; } = "";
[JsonPropertyName("name")]
public string name { get; set; } = "";
[JsonPropertyName("maxCapacity")]
public int maxCapacity { get; set; }
[JsonPropertyName("isFull")]
public bool isFull { get; set; }
[JsonPropertyName("isPrivate")]
public bool isPrivate { get; set; }
[JsonPropertyName("isInProgress")]
public bool isInProgress { get; set; }
[JsonPropertyName("EncryptVoiceChat")]
public bool EncryptVoiceChat { get; set; }
}
@@ -0,0 +1,15 @@
using System.Text.Json.Serialization;
namespace CannedNet;
public class RoomStats
{
[JsonPropertyName("CheerCount")]
public int CheerCount { get; set; }
[JsonPropertyName("FavoriteCount")]
public int FavoriteCount { get; set; }
[JsonPropertyName("VisitorCount")]
public int VisitorCount { get; set; }
[JsonPropertyName("VisitCount")]
public int VisitCount { get; set; }
}