mirror of
https://github.com/JogmansonReal/Radicade.git
synced 2026-10-25 23:18:56 -07:00
39 lines
981 B
C#
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;
|
|
}
|
|
}
|
|
}
|