{"size": 1293, "ext": "js", "max_stars_repo_path": "app/containers/SpeakerPage/actions.js", "max_stars_repo_name": "sosub/ss-up", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "app/containers/SpeakerPage/actions.js", "max_issues_repo_name": "sosub/ss-up", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "app/containers/SpeakerPage/actions.js", "max_forks_repo_name": "sosub/ss-up", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 15.578313253, "max_line_length": 63, "alphanum_fraction": 0.6914153132}
/*
 *
 * SpeakerPage actions
 *
 */

import {
  SET_SPEAKER,
  FETCH_SPEAKER, FETCH_SPEAKER_SUCCESS, FETCH_SPEAKER_ERROR,
  ADD_SPEAKER, ADD_SPEAKER_SUCCESS, ADD_SPEAKER_ERROR,
  UPDATE_SPEAKER, UPDATE_SPEAKER_SUCCESS, UPDATE_SPEAKER_ERROR,
} from './constants';

export function setSpeaker(speaker) {
  return {
    type: SET_SPEAKER,
    speaker,
  };
}

export function fetchSpeaker(speakerId) {
  return {
    type: FETCH_SPEAKER,
    speakerId,
  };
}

export function fetchSpeakerSuccess(speaker) {
  return {
    type: FETCH_SPEAKER_SUCCESS,
    speaker,
  };
}

export function fetchSpeakerError(error) {
  return {
    type: FETCH_SPEAKER_ERROR,
    error,
  };
}

export function addSpeaker(speaker) {
  return {
    type: ADD_SPEAKER,
    speaker,
  };
}

export function addSpeakerSuccess(speaker) {
  return {
    type: ADD_SPEAKER_SUCCESS,
    speaker,
  };
}

export function addSpeakerError(error) {
  return {
    type: ADD_SPEAKER_ERROR,
    error,
  };
}

export function updateSpeaker(speaker) {
  return {
    type: UPDATE_SPEAKER,
    speaker,
  };
}

export function updateSpeakerSuccess(speaker) {
  return {
    type: UPDATE_SPEAKER_SUCCESS,
    speaker,
  };
}

export function updateSpeakerError(error) {
  return {
    type: UPDATE_SPEAKER_ERROR,
    error,
  };
}
