kopia lustrzana https://github.com/activitypub-js/activitypub-models
19 wiersze
596 B
TypeScript
19 wiersze
596 B
TypeScript
import {APBase} from "../apBase/APBase.model";
|
|
import {ASModelType} from "../../common/types";
|
|
import {PlaceFields} from "./Place.types";
|
|
|
|
/**
|
|
* Represents a logical or physical location. See
|
|
* {@link https://www.w3.org/TR/activitystreams-vocabulary/#places 5.3 Representing Places}
|
|
* for additional information.
|
|
*
|
|
* {@link https://www.w3.org/ns/activitystreams#Place Docs}
|
|
*/
|
|
export class Place extends APBase<PlaceFields>{
|
|
static create(fields: PlaceFields) {
|
|
return APBase._create<PlaceFields>({
|
|
type: ASModelType.Place,
|
|
...fields,
|
|
});
|
|
}
|
|
} |