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 {CollectionFields} from "./Collection.types";
|
|
|
|
|
|
|
|
/**
|
|
|
|
* A Collection is a subtype of Object that represents
|
|
|
|
* ordered or unordered sets of Object or Link instances.
|
|
|
|
*
|
|
|
|
* {@link https://www.w3.org/ns/activitystreams#Collection Docs}
|
|
|
|
*/
|
2022-11-06 16:29:58 +00:00
|
|
|
export class Collection extends APBase<CollectionFields>{
|
2022-10-30 20:32:42 +00:00
|
|
|
constructor(fields: CollectionFields) {
|
|
|
|
super({
|
|
|
|
type: ASModelType.Collection,
|
|
|
|
...fields
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|