2022-11-06 16:29:58 +00:00
|
|
|
import {APBase} from "../apBase/APBase.model";
|
2022-10-30 20:32:42 +00:00
|
|
|
import {MentionFields} from "./Mention.types";
|
2022-11-14 16:26:06 +00:00
|
|
|
import {ASModelType} from "../../common/types";
|
|
|
|
|
2022-10-30 20:32:42 +00:00
|
|
|
/**
|
|
|
|
* A specialized Link that represents an @mention.
|
|
|
|
*
|
|
|
|
* {@link https://www.w3.org/ns/activitystreams#Mention Docs}
|
|
|
|
*/
|
2022-11-06 16:29:58 +00:00
|
|
|
export class Mention extends APBase<MentionFields>{
|
2022-11-14 16:26:06 +00:00
|
|
|
static create(fields: MentionFields) {
|
|
|
|
return APBase._create<MentionFields>({
|
2022-10-30 20:32:42 +00:00
|
|
|
type: ASModelType.Mention,
|
2022-11-14 16:26:06 +00:00
|
|
|
...fields,
|
|
|
|
});
|
2022-10-30 20:32:42 +00:00
|
|
|
}
|
|
|
|
}
|