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 {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}
|
|
|
|
*/
|
2022-11-06 16:29:58 +00:00
|
|
|
export class Profile extends APBase<ProfileFields>{
|
2022-10-30 20:32:42 +00:00
|
|
|
constructor(fields: ProfileFields) {
|
|
|
|
super({
|
|
|
|
type: ASModelType.Profile,
|
|
|
|
...fields
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|