kopia lustrzana https://github.com/activitypub-js/activitypub-models
17 wiersze
479 B
TypeScript
17 wiersze
479 B
TypeScript
import {APBase} from "../apBase/APBase.model";
|
|
import {ASModelType} from "../../common/types";
|
|
import {GroupFields} from "./Group.types";
|
|
|
|
/**
|
|
* Represents a formal or informal collective of Actors
|
|
*
|
|
* {@link https://www.w3.org/ns/activitystreams#Group Docs}
|
|
*/
|
|
export class Group extends APBase<GroupFields>{
|
|
static create(fields: GroupFields) {
|
|
return APBase._create<GroupFields>({
|
|
type: ASModelType.Group,
|
|
...fields,
|
|
});
|
|
}
|
|
} |