Library Core / src / PublicationMapper
Class: PublicationMapper
src.PublicationMapper
Maps raw Publication database rows to more accessible DTOs.
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new PublicationMapper(__namedParameters)
Parameters
| Name | Type |
|---|---|
__namedParameters |
PublicationMapperCtor |
Defined in
Properties
contentsPath
• contentsPath: string
Defined in
filename
• filename: string
Defined in
languageId
• languageId: number
Defined in
Methods
MapImage
▸ MapImage(image): ImageDTO
Maps a raw Image database row to a Image DTO.
Parameters
| Name | Type | Description |
|---|---|---|
image |
ImageRow | The database row. |
Returns
Defined in
MapImages
▸ MapImages(images): ImageDTO[]
Maps multiple Image database rows using MapImage and returns the mapped array.
Parameters
| Name | Type | Description |
|---|---|---|
images |
ImageRow[] | The database rows. |
Returns
ImageDTO[]
Defined in
MapRelatedPublication
▸ MapRelatedPublication(publication): RelatedPublicationDTO
Maps a raw Related Publication database row to a Related Publication DTO.
Parameters
| Name | Type | Description |
|---|---|---|
publication |
RelatedPublicationRow | The database row. |
Returns
Defined in
MapRelatedPublications
▸ MapRelatedPublications(publications): RelatedPublicationDTO[]
Maps multiple Related Publication database rows using MapRelatedPublication and returns the mapped array.
Parameters
| Name | Type | Description |
|---|---|---|
publications |
RelatedPublicationRow[] | The database rows. |
Returns
Defined in
MapVideo
▸ MapVideo(video): VideoDTO
Maps a raw Video database row to a Video DTO.
Parameters
| Name | Type | Description |
|---|---|---|
video |
VideoRow | The database row. |
Returns
Defined in
MapVideos
▸ MapVideos(videos): VideoDTO[]
Maps multiple Video database rows using MapVideo and returns the mapped array.
Parameters
| Name | Type | Description |
|---|---|---|
videos |
VideoRow[] | The database rows. |
Returns
VideoDTO[]