kopia lustrzana https://github.com/activitypub-js/activitypub-models
17 wiersze
624 B
TypeScript
17 wiersze
624 B
TypeScript
import {APBase} from "../apBase/APBase.model";
|
|
import {ASModelType} from "../../common/types";
|
|
import {OrderedCollectionPageFields} from "./OrderedCollectionPage.types";
|
|
|
|
/**
|
|
* Used to represent ordered subsets of items from an OrderedCollection.
|
|
*
|
|
* {@link https://www.w3.org/ns/activitystreams#OrderedCollectionPage Docs}
|
|
*/
|
|
export class OrderedCollectionPage extends APBase<OrderedCollectionPageFields>{
|
|
static create(fields: OrderedCollectionPageFields) {
|
|
return APBase._create<OrderedCollectionPageFields>({
|
|
type: ASModelType.OrderedCollectionPage,
|
|
...fields,
|
|
});
|
|
}
|
|
} |