File

src/app/models/book.model.ts

Description

Model class describing a book

Properties

comments
comments: []
Type : []

Comments made about this book

price
price: Price
Type : Price

Pricing information for this book

product
product:

Details about this book, namely

  • its id
  • its title
  • its author
  • its cover image URL
  • its description
rating
rating: Rating
Type : Rating

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[];
}

results matching ""

    No results matching ""