kopia lustrzana https://github.com/activitypub-js/activitypub-models
17 wiersze
476 B
TypeScript
17 wiersze
476 B
TypeScript
|
import {ASBase} from "../asBase/ASBase.model";
|
||
|
import {ASModelType} from "../../common/common.types";
|
||
|
import {OrganizationFields} from "./Organization.types";
|
||
|
|
||
|
/**
|
||
|
* Represents an organization
|
||
|
*
|
||
|
* {@link https://www.w3.org/ns/activitystreams#Organization Docs}
|
||
|
*/
|
||
|
export class Organization extends ASBase<OrganizationFields>{
|
||
|
constructor(fields: OrganizationFields) {
|
||
|
super({
|
||
|
type: ASModelType.Organization,
|
||
|
...fields
|
||
|
})
|
||
|
}
|
||
|
}
|