mirror of
https://github.com/JogmansonReal/Radicade.git
synced 2026-10-25 23:18:56 -07:00
Radicade Public Code
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace RadicadeServer.RecNet.Rooms
|
||||
{
|
||||
public class RestorableSubRoom
|
||||
{
|
||||
[JsonIgnore, Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public long HistoryId { get; set; }
|
||||
|
||||
public long SubRoomId { get; set; }
|
||||
|
||||
[JsonIgnore]
|
||||
public long RoomId { get; set; }
|
||||
|
||||
public long SavedByAccountId { get; set; }
|
||||
|
||||
public string DataBlob { get; set; } = string.Empty;
|
||||
|
||||
public DateTime CreatedAt { get; set; }
|
||||
|
||||
public RestorableSubRoom() { }
|
||||
public RestorableSubRoom(SubRoom subRoom)
|
||||
{
|
||||
this.RoomId = subRoom.RoomId;
|
||||
this.SubRoomId = subRoom.SubRoomId;
|
||||
this.DataBlob = subRoom.DataBlob;
|
||||
this.CreatedAt = subRoom.CreatedAt;
|
||||
this.SavedByAccountId = subRoom.SavedByAccountId;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user