station.js 534 B

123456789101112131415161718192021222324252627
  1. export const INITIALIZE_STATION = "INITIALIZE_STATION";
  2. export const PAUSE_STATION = "PAUSE_STATION";
  3. export const RESUME_STATION = "RESUME_STATION";
  4. export const LEAVE_STATION = "LEAVE_STATION";
  5. export function initializeStation(station) {
  6. return {
  7. type: INITIALIZE_STATION,
  8. station,
  9. };
  10. }
  11. export function pauseStation(pausedAt) {
  12. return {
  13. type: PAUSE_STATION,
  14. pausedAt,
  15. };
  16. }
  17. export function resumeStation() {
  18. return {
  19. type: RESUME_STATION,
  20. };
  21. }
  22. export function leaveStation() {
  23. return {
  24. type: LEAVE_STATION,
  25. };
  26. }