uoa-repository-manager-ui/src/app/domain/page-content.ts

45 lines
642 B
TypeScript
Executable File

/**
* Created by stefania on 7/17/17.
*/
import {PiwikInfo} from './typeScriptClasses';
export class PageContent {
content: PositionContents;
route: string;
_id: string;
name: string;
}
export interface PositionContents {
top: Content[];
right: Content[];
bottom: Content[];
left: Content[];
}
export interface Content {
_id: string;
page: Page | string;
placement: string;
order: number;
content: string;
isActive: boolean;
}
export interface Page {
_id: string;
route: string;
name: string;
}
export class PiwikInfoPage {
total: number;
from: number;
to: number;
results: PiwikInfo[];
}