import { apiGetUser } from './profile.constant' ; import { ProfileModel } from './profile.model' ; export namespace ProfileActions { export class FetchUser { static readonly type = '[Profile Tab] Fetch user' ; constructor ( public userId , public api = '' ) { this . api = apiGetUser ( this . userId ) ; } } export class FetchUserSuccess { static readonly type = '[Profile Tab] Fetch user success' ; constructor ( public listData ) { } } export class FetchUserFail { static readonly type = '[Profile Tab] Fetch user fail' ; constructor ( public error ) { } } }