@spartacus/core
Version:
Spartacus - the core framework
18 lines (17 loc) • 722 B
TypeScript
import { Observable } from 'rxjs';
import { NotificationPreference } from '../../../model/notification-preference.model';
export declare abstract class UserNotificationPreferenceAdapter {
/**
* Abstract method used to load notification preferences for an user.
*
* @param userId The `userId` for given user
*/
abstract loadAll(userId: string): Observable<NotificationPreference[]>;
/**
* Abstract method used to update notification preferences for an user.
*
* @param userId The `userId` for given user
* @param preferences The notification preferences to be updated.
*/
abstract update(userId: string, preferences: NotificationPreference[]): Observable<{}>;
}