import { ContentTypeContracts } from '../../contracts'; import { ContentTypeModels, SharedModels } from '../../models'; import { BaseResponses } from '../base-responses'; export namespace ContentTypeResponses { export class ContentTypeListResponse extends BaseResponses.BaseContentManagementListResponse { constructor( debug: BaseResponses.IContentManagementResponseDebug, rawData: ContentTypeContracts.IContentTypeListResponseContract, data: { items: ContentTypeModels.ContentType[], pagination: SharedModels.Pagination } ) { super(debug, rawData, data); } } export class ContentTypeListAllResponse extends BaseResponses.ContentManagementListAllResponse { constructor( data: { items: ContentTypeModels.ContentType[], responses: ContentTypeListResponse[] } ) { super(data); } } export class ModifyContentTypeResponse extends BaseResponses.BaseContentManagementResponse { constructor( debug: BaseResponses.IContentManagementResponseDebug, rawData: ContentTypeContracts.IViewContentTypeResponseContract, data: ContentTypeModels.ContentType ) { super(debug, rawData, data); } } export class ViewContentTypeResponse extends BaseResponses.BaseContentManagementResponse { constructor( debug: BaseResponses.IContentManagementResponseDebug, rawData: ContentTypeContracts.IViewContentTypeResponseContract, data: ContentTypeModels.ContentType ) { super(debug, rawData, data); } } export class AddContentTypeResponse extends BaseResponses.BaseContentManagementResponse { constructor( debug: BaseResponses.IContentManagementResponseDebug, rawData: ContentTypeContracts.IAddContentTypeResponseContract, data: ContentTypeModels.ContentType ) { super(debug, rawData, data); } } }