Files
Radicade/Server/Relationships/Relationship.cs
T
2026-10-16 23:33:13 -07:00

39 lines
981 B
C#

using Microsoft.EntityFrameworkCore;
using System.Text.Json.Serialization;
namespace RadicadeServer.RecNet.Relationships
{
public class Relationship
{
[JsonPropertyName("Id")]
public long Id { get; set; }
[JsonPropertyName("PlayerID")]
public long PlayerID { get; set; }
[JsonPropertyName("RelationshipType")]
public RelationshipType RelationshipType { get; set; }
[JsonPropertyName("Favorited")]
public ReciprocalStatus Favorited { get; set; }
[JsonPropertyName("Muted")]
public ReciprocalStatus Muted { get; set; }
[JsonPropertyName("Ignored")]
public ReciprocalStatus Ignored { get; set; }
public Relationship() { }
public Relationship(RealRelationship realRelationship)
{
Id = realRelationship.RelationshipId;
PlayerID = realRelationship.PlayerId;
RelationshipType = realRelationship.RelationshipType;
Muted = realRelationship.Muted;
Ignored = realRelationship.Ignored;
Favorited = realRelationship.Favorited;
}
}
}