kopia lustrzana https://github.com/activitypub-js/activitypub-models
19 wiersze
615 B
TypeScript
19 wiersze
615 B
TypeScript
|
import {ASBase} from "../asBase/ASBase.model";
|
||
|
import {ASModelType} from "../../common/common.types";
|
||
|
import {ProfileFields} from "./Profile.types";
|
||
|
|
||
|
/**
|
||
|
* A Profile is a content object that describes another Object,
|
||
|
* typically used to describe Actor Type objects. The describes property
|
||
|
* is used to reference the object being described by the profile.
|
||
|
*
|
||
|
* {@link https://www.w3.org/ns/activitystreams#Profile Docs}
|
||
|
*/
|
||
|
export class Profile extends ASBase<ProfileFields>{
|
||
|
constructor(fields: ProfileFields) {
|
||
|
super({
|
||
|
type: ASModelType.Profile,
|
||
|
...fields
|
||
|
})
|
||
|
}
|
||
|
}
|