mirror of
https://github.com/JogmansonReal/Radicade.git
synced 2026-10-25 15:09:26 -07:00
32 lines
935 B
C#
32 lines
935 B
C#
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;
|
|
}
|
|
}
|