@spartacus/core
Version:
Spartacus - the core framework
19 lines (18 loc) • 1.09 kB
TypeScript
import { HttpClient } from '@angular/common/http';
import { Observable } from 'rxjs';
import { Review } from '../../../model/product.model';
import { OccEndpointsService } from '../../services/occ-endpoints.service';
import { ConverterService } from '../../../util/converter.service';
import { ProductReviewsAdapter } from '../../../product/connectors/reviews/product-reviews.adapter';
import * as i0 from "@angular/core";
export declare class OccProductReviewsAdapter implements ProductReviewsAdapter {
protected http: HttpClient;
protected occEndpoints: OccEndpointsService;
protected converter: ConverterService;
constructor(http: HttpClient, occEndpoints: OccEndpointsService, converter: ConverterService);
load(productCode: string, maxCount?: number): Observable<Review[]>;
post(productCode: string, review: any): Observable<Review>;
protected getEndpoint(code: string, maxCount?: number): string;
static ɵfac: i0.ɵɵFactoryDeclaration<OccProductReviewsAdapter, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<OccProductReviewsAdapter>;
}