AP.NET/Models/Objects/Relationship.cs
Gordon Pedersen 7c84fbc4c5 Initial commit way too late
There's a lot of rubbish in here, but I don't want to lose anything, so I'm going to commit it all before getting rid of some of the trash.
2024-04-05 15:26:57 +11:00

29 lines
No EOL
796 B
C#

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