2022-11-06 16:29:58 +00:00
|
|
|
import {APBase} from "../apBase/APBase.model";
|
2022-10-30 20:32:42 +00:00
|
|
|
import {ASModelType} from "../../common/common.types";
|
|
|
|
import {RelationshipFields} from "./Relationship.types";
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Describes a relationship between two individuals. The subject and
|
|
|
|
* object properties are used to identify the connected individuals.
|
|
|
|
* See {@link https://www.w3.org/TR/activitystreams-vocabulary/#connections 5.2 Representing Relationships Between Entities}
|
|
|
|
* for additional information.
|
|
|
|
*
|
|
|
|
* {@link https://www.w3.org/ns/activitystreams#Relationship Docs}
|
|
|
|
*/
|
2022-11-06 16:29:58 +00:00
|
|
|
export class Relationship extends APBase<RelationshipFields>{
|
2022-10-30 20:32:42 +00:00
|
|
|
constructor(fields: RelationshipFields) {
|
|
|
|
super({
|
|
|
|
type: ASModelType.Relationship,
|
|
|
|
...fields
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|