2015-06-05 11:06:36 +02:00
|
|
|
'use strict';
|
|
|
|
|
2016-02-08 17:49:11 +01:00
|
|
|
import { altUser } from '../alt';
|
2015-05-20 16:19:40 +02:00
|
|
|
|
2015-05-20 16:44:45 +02:00
|
|
|
|
2015-05-20 16:19:40 +02:00
|
|
|
class UserActions {
|
|
|
|
constructor() {
|
|
|
|
this.generateActions(
|
2015-10-30 16:57:03 +01:00
|
|
|
'fetchCurrentUser',
|
2015-11-02 16:32:55 +01:00
|
|
|
'successFetchCurrentUser',
|
2015-11-02 15:47:57 +01:00
|
|
|
'logoutCurrentUser',
|
2015-11-02 16:32:55 +01:00
|
|
|
'successLogoutCurrentUser',
|
2015-11-16 17:16:13 +01:00
|
|
|
'errorCurrentUser'
|
2015-05-20 16:19:40 +02:00
|
|
|
);
|
|
|
|
}
|
2015-06-05 11:06:36 +02:00
|
|
|
}
|
2015-05-20 16:19:40 +02:00
|
|
|
|
2016-02-08 17:49:11 +01:00
|
|
|
export default altUser.createActions(UserActions);
|