PreferenceController.ts 670 Bytes
import { AxiosResponse, AxiosStatic } from 'axios';
import { Account } from "lib/src/entity/account/entity/Account";

export class PreferenceController {

    static setPreferencePopup(axios: AxiosStatic, params: any): Promise<AxiosResponse<Account>> {
        return axios.post('account/preference/skip.popup.for7days', params);
    }

    static getPreferenceDetails(axios: AxiosStatic, params: any): Promise<AxiosResponse<Account>> {
        return axios.post('account/preference/get', params);
    }

    static savePreference(axios: AxiosStatic, params: any): Promise<AxiosResponse<Account>> {
        return axios.post('account/preference/save', params);
    }

}