Radicade Public Code

This commit is contained in:
JogmansonReal
2026-10-16 23:33:13 -07:00
commit 55175acdf6
832 changed files with 363261 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace RadicadeServer.RecNet.Rooms
{
public class PlayerInteraction
{
public bool Cheered { get; set; }
public bool Favorited { get; set; }
public PlayerInteraction(PlayerInteractionDB db) { Cheered = db.Cheered; Favorited = db.Favorited; }
public PlayerInteraction() { }
}
public class PlayerInteractionDB
{
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public long InteractionId { get; set; }
public long PlayerId { get; set; }
public long RoomId { get; set; }
public bool Cheered { get; set; }
public bool Favorited { get; set; }
public DateTime CheeredAt { get; set; } = DateTime.Now;
public DateTime FavoritedAt { get; set; } = DateTime.Now;
public int VisitCount { get; set; }
public bool Visited { get; set; }
public DateTime LastVisted { get; set; } = DateTime.Now;
}
}