1
0
mirror of https://github.com/mgerb/classic-wow-forums synced 2026-01-12 01:52:49 +00:00

cache character end point - update reply count/thread reply id

This commit is contained in:
2018-01-09 23:24:09 -06:00
parent 2d6ff0875f
commit d3d3bef9a5
17 changed files with 226 additions and 22 deletions

View File

@@ -1,2 +1,4 @@
export * from './category';
export * from './reply';
export * from './thread';
export * from './user';

10
client/app/model/reply.ts Normal file
View File

@@ -0,0 +1,10 @@
export interface RepyModel {
content: string;
edited: boolean;
id: number;
inserted_at: string;
quote: boolean;
thread_id: number;
updated_at: string;
user_id: number;
}

View File

@@ -0,0 +1,20 @@
import { RepyModel } from './reply';
export interface ThreadModel {
category_id: number;
content: string;
title: string;
edited: boolean;
id: number;
inserted_at: string;
last_reply: { id: number; battletag: string };
last_reply_id: number;
locked: boolean;
replies: RepyModel[];
reply_count: number;
sticky: boolean;
updated_at: string;
user: { id: number; battletag: string };
user_id: number;
view_count: number;
}