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; } } }