import {
  POST_AD_ANSWER_REQUEST,
  POST_AD_ANSWER_FAILURE,
  POST_AD_ANSWER_SUCCESS,
  FETCH_JOBS_ANSWER_REQUEST,
  FETCH_JOBS_ANSWER_SUCCESS,
  FETCH_JOBS_ANSWER_FAILURE,
  FETCH_ANSWER_REQUEST,
  FETCH_ANSWER_SUCCESS,
  FETCH_ANSWER_FAILURE,
  POST_MESSAGE_ANSWER_REQUEST,
  POST_MESSAGE_ANSWER_FAILURE,
  POST_MESSAGE_ANSWER_SUCCESS,
  FETCH_ANSWER_MESAGES_REQUEST,
  FETCH_ANSWER_MESAGES_FAILURE,
  FETCH_ANSWER_MESAGES_SUCCESS,
} from "../types";

export const postAdAnswerRequest = payload => ({
  type: POST_AD_ANSWER_REQUEST,
  payload
});

export const postAdAnswerRequestFailure = errors => ({
  type: POST_AD_ANSWER_FAILURE,
  errors
});

export const postAdAnswerRequestSuccess = res => ({
  type: POST_AD_ANSWER_SUCCESS,
  res
});

export const postMessageAnswerRequest = payload => ({
  type: POST_MESSAGE_ANSWER_REQUEST,
  payload
});

export const postMessageAnswerFailure = errors => ({
  type: POST_MESSAGE_ANSWER_FAILURE,
  errors
});

export const postMessageAnswerSuccess = res => ({
  type: POST_MESSAGE_ANSWER_SUCCESS,
  res
});


export const fetchJobsAnsweredRequest = payload => ({
  type: FETCH_JOBS_ANSWER_REQUEST,
  payload
});

export const fetchJobsAnsweredSuccess = res => ({
  type: FETCH_JOBS_ANSWER_SUCCESS,
  res
});


export const fetchJobsAnsweredFailure = errors => ({
  type: FETCH_JOBS_ANSWER_FAILURE,
  errors
});

export const fetchAnswerRequest = payload => ({
  type: FETCH_ANSWER_REQUEST,
  payload
});

export const fetchAnswerSuccess = res => ({
  type: FETCH_ANSWER_SUCCESS,
  res
});

export const fetchAnswerFailure = errors => ({
  type: FETCH_ANSWER_FAILURE,
  errors
});

export const fetchAnswerMessagesRequest = payload => ({
  type: FETCH_ANSWER_MESAGES_REQUEST,
  payload
});

export const fetchAnswerMessagesSuccess = res => ({
  type: FETCH_ANSWER_MESAGES_SUCCESS,
  res
});

export const fetchAnswerMessagesFailure = errors => ({
  type: FETCH_ANSWER_MESAGES_FAILURE,
  errors
});