2022-11-06 16:29:58 +00:00
|
|
|
import {APBase} from "../apBase/APBase.model";
|
2022-11-14 16:26:06 +00:00
|
|
|
import {ASModelType} from "../../common/types";
|
2022-10-30 20:32:42 +00:00
|
|
|
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}
|
|
|
|
*/
|
2022-11-06 16:29:58 +00:00
|
|
|
export class Place extends APBase<PlaceFields>{
|
2022-11-14 16:26:06 +00:00
|
|
|
static create(fields: PlaceFields) {
|
|
|
|
return APBase._create<PlaceFields>({
|
2022-10-30 20:32:42 +00:00
|
|
|
type: ASModelType.Place,
|
2022-11-14 16:26:06 +00:00
|
|
|
...fields,
|
|
|
|
});
|
2022-10-30 20:32:42 +00:00
|
|
|
}
|
|
|
|
}
|