InterfaceAnnouncementRepository
interface AnnouncementRepository { $select(id: string): { addReaction(name: string,
meta?: HttpMetaParams<"none">): Promise<void>; dismiss(meta?: HttpMetaParams<"none">): Promise<void>; removeReaction(name: string,
meta?: HttpMetaParams<"none">): Promise<void>; }; list(meta?: HttpMetaParams<"none">): Paginator<Announcement[], undefined>; } Methods
$select
- $select(id): {
addReaction(name: string, meta?: HttpMetaParams<"none">): Promise<void>;
dismiss(meta?: HttpMetaParams<"none">): Promise<void>;
removeReaction(name: string, meta?: HttpMetaParams<"none">): Promise<void>;
} Returns {
addReaction(name: string, meta?: HttpMetaParams<"none">): Promise<void>;
dismiss(meta?: HttpMetaParams<"none">): Promise<void>;
removeReaction(name: string, meta?: HttpMetaParams<"none">): Promise<void>;
}
addReaction:function
- addReaction(name, meta?): Promise<void>
Parameters
- name: string
Optional
meta: HttpMetaParams<"none">
Returns Promise<void>
N/A
dismiss:function
- dismiss(meta?): Promise<void>
Parameters
Optional
meta: HttpMetaParams<"none">
Returns Promise<void>
Nothing
removeReaction:function
- removeReaction(name, meta?): Promise<void>
Parameters
- name: string
Optional
meta: HttpMetaParams<"none">
Returns Promise<void>
N/A
list
- list(meta?): Paginator<Announcement[], undefined>
Parameters
Optional
meta: HttpMetaParams<"none">
Announcements
Add a reaction to an announcement