kopia lustrzana https://github.com/activitypub-js/activitypub-models
17 wiersze
439 B
TypeScript
17 wiersze
439 B
TypeScript
import {APBase} from "../apBase/APBase.model";
|
|
import {ASModelType} from "../../common/common.types";
|
|
import {APEventFields} from "./APEvent.types";
|
|
|
|
/**
|
|
* Represents any kind of event
|
|
*
|
|
* {@link https://www.w3.org/ns/activitystreams#Event Docs}
|
|
*/
|
|
export class APEvent extends APBase<APEventFields>{
|
|
constructor(fields: APEventFields) {
|
|
super({
|
|
type: ASModelType.Event,
|
|
...fields
|
|
})
|
|
}
|
|
} |