2024-11-21 15:34:20 +00:00
|
|
|
import Model, { attr } from '@ember-data/model';
|
|
|
|
import type EmoteModel from './emote';
|
2024-11-20 14:39:24 +00:00
|
|
|
|
2024-11-20 15:11:11 +00:00
|
|
|
export default class Reaction extends Model {
|
2024-11-21 15:34:20 +00:00
|
|
|
@attr declare noteId: string;
|
|
|
|
@attr declare reactorId: string;
|
|
|
|
@attr declare emoteId: number;
|
|
|
|
@attr declare emote: EmoteModel;
|
2024-11-20 14:39:24 +00:00
|
|
|
}
|
2024-11-20 15:11:11 +00:00
|
|
|
|
|
|
|
declare module 'ember-data/types/registries/model' {
|
|
|
|
export default interface ModelRegistry {
|
2024-11-21 15:34:20 +00:00
|
|
|
reaction: Reaction;
|
2024-11-20 15:11:11 +00:00
|
|
|
}
|
|
|
|
}
|