mirror of
https://github.com/JogmansonReal/Radicade.git
synced 2026-10-25 23:18:56 -07:00
27 lines
597 B
C#
27 lines
597 B
C#
using RadicadeServer.RecNet.Accounts;
|
|
using RadicadeServer.RecNet.Enums.Rooms;
|
|
using RadicadeServer.RecNet.Rooms;
|
|
|
|
namespace RadicadeServer.RecNet.Responses
|
|
{
|
|
public class MatchResponse
|
|
{
|
|
public JoinStatus errorCode { get; set; }
|
|
public RoomInstance? roomInstance { get; set; }
|
|
|
|
public static MatchResponse Error(JoinStatus status)
|
|
{
|
|
return new MatchResponse { errorCode = status, roomInstance = null };
|
|
}
|
|
public MatchResponse()
|
|
{
|
|
|
|
}
|
|
public MatchResponse(JoinStatus status, RoomInstance instance)
|
|
{
|
|
this.errorCode = status;
|
|
this.roomInstance = instance;
|
|
}
|
|
}
|
|
}
|