Last active
April 11, 2017 08:10
-
-
Save brakmic/373bea2fe10ca89494b64c71eb4ab18e to your computer and use it in GitHub Desktop.
define action classes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export class InitCustomerAction implements Action { | |
type = CustomerActionTypes.INIT; | |
payload: ICustomer = null; | |
} | |
export class InitializedCustomerAction implements Action { | |
type = CustomerActionTypes.INITIALIZED; | |
constructor(public payload: ICustomer) { } | |
} | |
export class InitFailedCustomerAction implements Action { | |
type = CustomerActionTypes.INIT_FAILED; | |
payload: ICustomer = null; | |
} | |
export class CustomerSelectedAction implements Action { | |
type = CustomerActionTypes.SELECTED; | |
constructor(public payload: ICustomer) { } | |
} | |
export class CustomerChangedAction implements Action { | |
type = CustomerActionTypes.CHANGED; | |
payload: ICustomer = null; | |
constructor() { } | |
} | |
export class CustomerDeletedAction implements Action { | |
type = CustomerActionTypes.DELETED; | |
payload: ICustomer = null; | |
constructor() { } | |
} | |
export class CustomerSavedAction implements Action { | |
type = CustomerActionTypes.SAVED; | |
constructor(public payload: ICustomer) { } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment