import { APIProfileUsefulRecommendation, StoreProfileUsefulRecommendation } from "./interfaces"; import { Resource } from "../resource"; import { Response } from "src/server"; export declare class ProfileUsefulRecommendation extends Resource { /** * The profile the profile-useful-recommendation belongs to. */ profileId: string; /** * The recommendation the profile-useful-recommendation belongs to. */ recommendationId: string; /** * The usefulness of profile-useful-recommendation. */ wasUseful: boolean; constructor(profileId: string, traitId: string, wasUseful: boolean); /** * The name of the profile-useful-recommendation resource on the API server. */ static get resourceName(): string; /** * The name of the service containing the profile-useful-recommendation resource. */ static get serviceName(): string; /** * Convert the profile-useful-recommendation into a JSON serializable object for the API server. */ serializeAPI(): APIProfileUsefulRecommendation; /** * Deserialize the data from the API server. * * @param data The profile-useful-recommendation data from the API server. */ deserializeAPI(data: APIProfileUsefulRecommendation): void; /** * Serialize the profile-useful-recommendation into a format for storing in the Redux store. */ serializeRedux(): StoreProfileUsefulRecommendation; /** * Handle any http errors. * * @param response The response. * * @returns `null`. */ protected static handleError(response: Response): null; /** * Create a profile-useful-recommendation from the API server data. * * @param data Data from the api server. * * @returns The profile-useful-recommendation object. */ static apiFactory(data: APIProfileUsefulRecommendation): ProfileUsefulRecommendation; /** * Create a profile-useful-recommendation from the Redux store data. * * @param data Data from the api server. * * @returns The profile-useful-recommendation object. */ static reduxFactory(data: StoreProfileUsefulRecommendation): ProfileUsefulRecommendation; }