2022-11-06 16:29:58 +00:00
|
|
|
import {APBase} from "../apBase/APBase.model";
|
2022-10-30 20:32:42 +00:00
|
|
|
import { ActivityFields } from "./Activity.types";
|
|
|
|
import {ASModelType} from "../../common/common.types";
|
|
|
|
|
|
|
|
/**
|
|
|
|
* An Activity is a subtype of Object that describes some form of action that may happen,
|
|
|
|
* is currently happening, or has already happened. The Activity type itself serves as an
|
|
|
|
* abstract base type for all types of activities. It is important to note that the Activity
|
|
|
|
* type itself does not carry any specific semantics about the kind of action being taken.
|
|
|
|
*
|
|
|
|
* {@link https://www.w3.org/ns/activitystreams#Activity Docs}
|
|
|
|
*/
|
2022-11-06 16:29:58 +00:00
|
|
|
export class Activity extends APBase<ActivityFields>{
|
2022-10-30 20:32:42 +00:00
|
|
|
constructor(fields: ActivityFields) {
|
|
|
|
super({
|
|
|
|
type: ASModelType.Activity,
|
|
|
|
...fields
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|