src/app/models/book.model.ts
Model class describing a book
comments |
comments: |
Type : []
|
Defined in src/app/models/book.model.ts:37
|
Comments made about this book |
price |
price: |
Type : Price
|
Defined in src/app/models/book.model.ts:27
|
Pricing information for this book |
product |
product: |
Defined in src/app/models/book.model.ts:16
|
Details about this book, namely
|
rating |
rating: |
Type : Rating
|
Defined in src/app/models/book.model.ts:32
|
Rating information for this book |
import { Price } from "app/models/price.model";
import { Rating } from "app/models/rating.model";
/**
* Model class describing a book
*/
export class Book {
/**
* Details about this book, namely
* - its id
* - its title
* - its author
* - its cover image URL
* - its description
*/
product: {
skuId: string;
title: string;
author: string;
imageCover: string;
description: string;
}
/**
* Pricing information for this book
*/
price: Price;
/**
* Rating information for this book
*/
rating: Rating;
/**
* Comments made about this book
*/
comments: string[];
}