mirror of
https://github.com/JogmansonReal/Radicade.git
synced 2026-10-27 07:59:03 -07:00
Radicade Public Code
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user