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