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