More changes...

This commit is contained in:
2026-02-27 19:30:49 -08:00
parent 20fdf60665
commit b64e257b9a
36 changed files with 553 additions and 63 deletions

View File

@@ -2,9 +2,12 @@
namespace RecRoomArchive.Models.API.Activities
{
public class CharadesWord(string word, CharadesWordsDifficulty difficulty = CharadesWordsDifficulty.Easy)
public class CharadesWord
{
[JsonPropertyName(name: "Difficulty")] public CharadesWordsDifficulty Difficulty { get; set; } = difficulty;
[JsonPropertyName(name: "EN_US")] public string EN_US { get; set; } = word;
[JsonPropertyName("Difficulty")]
public CharadesWordsDifficulty Difficulty { get; set; } = CharadesWordsDifficulty.Easy;
[JsonPropertyName("EN_US")]
public string EN_US { get; set; } = string.Empty;
}
}

View File

@@ -6,5 +6,6 @@ namespace RecRoomArchive.Models.API.Config
{
[JsonPropertyName(name: "CloudRegion")] public string CloudRegion { get; set; } = "us";
[JsonPropertyName(name: "CrcCheckEnabled")] public bool CrcCheckEnabled { get; set; } = true;
[JsonPropertyName(name: "EnableServerTracingAfterDisconnect")] public bool EnableServerTracingAfterDisconnect { get; set; } = true;
}
}

View File

@@ -0,0 +1,21 @@
namespace RecRoomArchive.Models.API.GameSessions
{
public enum ActivityLevels
{
INVALID = -1,
DORM_ROOM = 1000,
REC_CENTER = 2000,
CHARADES = 3000,
DISC_GOLF = 4000,
DODGEBALL = 5000,
THE_LOUNGE = 6000,
PADDLEBALL = 7000,
PAINTBALL = 8000,
QUEST = 9000,
SOCCER = 10000,
ART_TESTING = 11000,
PERFORMANCE_HALL = 12000,
ROOM_CALIBRATION = 13000,
PARK = 14000
}
}

View File

@@ -0,0 +1,34 @@
using System.Text.Json.Serialization;
namespace RecRoomArchive.Models.API.GameSessions
{
public class GameSession
{
[JsonPropertyName(name: "GameSessionId")]
public long GameSessionId { get; set; } = 1;
[JsonPropertyName(name: "RegionId")]
public string RegionId { get; set; } = "us";
[JsonPropertyName(name: "RoomId")]
public string RoomId { get; set; } = "fba33a23-b4a5-4f55-a631-37028b1db7f9";
[JsonPropertyName(name: "EventId")]
public ulong? EventId { get; set; }
[JsonPropertyName(name: "ActivityLevelId")]
public string ActivityLevelId { get; set; } = "76d98498-60a1-430c-ab76-b54a29b7a163";
[JsonPropertyName(name: "Private")]
public bool Private { get; set; } = false;
[JsonPropertyName(name: "GameInProgress")]
public bool GameInProgress { get; set; } = false;
[JsonPropertyName(name: "MaxCapacity")]
public int MaxCapacity { get; set; } = 8;
[JsonPropertyName(name: "IsFull")]
public bool IsFull { get; set; } = false;
}
}

View File

@@ -0,0 +1,14 @@
namespace RecRoomArchive.Models.API.GameSessions
{
public enum JoinGameErrorCode
{
Success,
NoSuchGame,
PlayerNotOnline,
InsufficientSpace,
EventNotStarted,
EventAlreadyFinished,
EventCreatorNotReady,
Blocked
}
}

View File

@@ -0,0 +1,14 @@
using System.Text.Json.Serialization;
namespace RecRoomArchive.Models.API.GameSessions
{
public class JoinGameSessionResponse
{
[JsonPropertyName(name: "Result")]
public JoinGameErrorCode Result { get; set; } = JoinGameErrorCode.Success;
[JsonPropertyName(name: "GameSession")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public GameSession? GameSession { get; set; }
}
}

View File

@@ -0,0 +1,8 @@
namespace RecRoomArchive.Models.API.GameSessions
{
public class JoinRandomGameSessionRequest
{
public required string[] ActivityLevelIds { get; set; } = [];
public ulong[] ExpectedPlayerIds { get; set; } = [];
}
}

View File

@@ -0,0 +1,16 @@
using System.Text.Json.Serialization;
namespace RecRoomArchive.Models.API.GameSessions
{
public class PresenceResponseFuckYou
{
[JsonPropertyName(name: "PlayerId")]
public ulong PlayerId { get; set; }
[JsonPropertyName(name: "IsOnline")]
public bool IsOnline { get; set; }
[JsonPropertyName(name: "GameSession")]
public GameSession? GameSession { get; set; }
}
}

View File

@@ -0,0 +1,46 @@
namespace RecRoomArchive.Models.API.Notification
{
public enum PushNotificationId
{
RelationshipChanged = 1,
MessageReceived,
MessageDeleted,
PresenceHeartbeatResponse,
RefreshLogin,
Logout,
SubscriptionUpdateProfile = 11,
SubscriptionUpdatePresence,
SubscriptionUpdateGameSession,
SubscriptionUpdateRoom = 15,
SubscriptionUpdateRoomPlaylist,
ModerationQuitGame = 20,
ModerationUpdateRequired,
ModerationKick,
ModerationKickAttemptFailed,
ModerationRoomBan,
ServerMaintenance,
GiftPackageReceived = 30,
GiftPackageReceivedImmediate,
GiftPackageRewardSelectionReceived,
ProfileJuniorStatusUpdate = 40,
RelationshipsInvalid = 50,
StorefrontBalanceAdd = 60,
StorefrontBalanceUpdate,
StorefrontBalancePurchase,
ConsumableMappingAdded = 70,
ConsumableMappingRemoved,
PlayerEventCreated = 80,
PlayerEventUpdated,
PlayerEventDeleted,
PlayerEventResponseChanged,
PlayerEventResponseDeleted,
PlayerEventStateChanged,
ChatMessageReceived = 90,
CommunityBoardUpdate = 95,
CommunityBoardAnnouncementUpdate,
InventionModerationStateChanged = 100,
FreeGiftButtonItemsAdded = 110,
LocalRoomKeyCreated = 120,
LocalRoomKeyDeleted
}
}

View File

@@ -12,5 +12,6 @@ namespace RecRoomArchive.Models.API.PlatformLogin.Requests
public required long BuildTimestamp { get; set; }
public required string AuthParams { get; set; }
public required string Verify { get; set; }
public string? PlayerId { get; set; }
}
}

View File

@@ -4,10 +4,13 @@ namespace RecRoomArchive.Models.API.PlatformLogin.Responses
{
public class BaseLoginResponse
{
[JsonPropertyName(name: "PlayerId")]
public ulong PlayerId { get; set; }
[JsonPropertyName(name: "Token")]
public string Token { get; set; } = string.Empty;
[JsonPropertyName(name: "PlayerId")]
public ulong PlayerId { get; set; }
[JsonPropertyName(name: "Error")]
public string Error { get; set; } = string.Empty;
}
}

View File

@@ -0,0 +1,12 @@
using System.Text.Json.Serialization;
namespace RecRoomArchive.Models.API.VersionCheck
{
public class VersionCheckResponse(VersionStatus versionStatus = VersionStatus.ValidForPlay)
{
[JsonPropertyName(name: "VersionStatus")] public VersionStatus VersionStatus { get; set; } = versionStatus;
[JsonPropertyName(name: "ValidVersion")] public bool ValidVersion => VersionStatus == VersionStatus.ValidForPlay;
[JsonPropertyName(name: "IsValid")] public bool IsValid => VersionStatus == VersionStatus.ValidForPlay;
}
}

View File

@@ -0,0 +1,8 @@
namespace RecRoomArchive.Models.API.VersionCheck
{
public enum VersionStatus
{
ValidForPlay,
UpdateRequired
}
}