2022-11-06 16:29:58 +00:00
|
|
|
import {APBase} from "../apBase/APBase.model";
|
2022-10-30 20:32:42 +00:00
|
|
|
import {ASModelType} from "../../common/common.types";
|
|
|
|
import {OrderedCollectionFields} from "./OrderedCollection.types";
|
|
|
|
|
|
|
|
/**
|
|
|
|
* A subtype of Collection in which members of
|
|
|
|
* the logical collection are assumed to always be strictly ordered.
|
|
|
|
*
|
|
|
|
* {@link https://www.w3.org/ns/activitystreams#OrderedCollection Docs}
|
|
|
|
*/
|
2022-11-06 16:29:58 +00:00
|
|
|
export class OrderedCollection extends APBase<OrderedCollectionFields>{
|
2022-10-30 20:32:42 +00:00
|
|
|
constructor(fields: OrderedCollectionFields) {
|
|
|
|
super({
|
|
|
|
type: ASModelType.OrderedCollection,
|
|
|
|
...fields
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|