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,38 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user