AP.NET/Models/Objects/Relationship.cs

29 lines
796 B
C#
Raw Normal View History

namespace ActivityPub;
/// <summary>
/// https://www.w3.org/ns/activitystreams#Relationship
/// </summary>
public class Relationship : Object {
/// <summary>
/// Default Constructor
/// </summary>
public Relationship() : base() => this.Type = "Relationship";
/// <summary>
/// https://www.w3.org/ns/activitystreams#subject
/// </summary>
public ObjectOrLink? Subject { get; set; }
/// <summary>
/// https://www.w3.org/ns/activitystreams#Object
/// </summary>
public ObjectOrLink? Object { get; set; }
/// <summary>
/// https://www.w3.org/ns/activitystreams#Relationship
/// </summary>
// This is the only lowercase property in all the classes
// because "Member names cannot be the same as their enclosing type"
public string? relationship { get; set; }
}