import { PageLinks, PageMeta } from './shared.model';
import { Profile, Tag } from '.';

export interface Article {
    slug: string;
    title: string;
    description: string;
    body: string;
    author: Profile;
    createdAt: string;
    updatedAt: string;
    tagList: Tag[];
    favorited: boolean;
    favoritesCount: number;
}

export interface ArticlePageData {
    article: Article;
    _links: PageLinks;
    _meta: PageMeta;
}

export interface ArticlesPageData {
    articles: Array<Article>;
    _links: PageLinks;
    _meta: PageMeta;
}
