// Path: src/main/java/com/getit/todoapp/domain/Feedback.java
// public class Feedback {
// 	
// 	private String email;
// 	private String body;
// 	
// 	public String getEmail() {
// 		return email;
// 	}
// 	public void setEmail(String email) {
// 		this.email = email;
// 	}
// 	public String getBody() {
// 		return body;
// 	}
// 	public void setBody(String body) {
// 		this.body = body;
// 	}
// 	
// 	
// 	public static Feedback fromJsonToFeedback(String json) {
//         return new JSONDeserializer<Feedback>().use(null, Feedback.class).deserialize(json);
//     }
// 
// }
// 
// Path: src/main/java/com/getit/todoapp/service/EmailService.java
// public interface EmailService {
// 	StatusResponse send(Message message);
// }
// 
// Path: src/main/java/com/getit/todoapp/service/Message.java
// public class Message implements Serializable {
// 
// 	private static final long serialVersionUID = -4093981756240899937L;
// 	private String senderName;
// 	private String senderEmail;
// 	private String ccEmail;
// 	private String subject;
// 	private String body;
// 	private String receiverName;
// 	private String receiverEmail;
// 
// 	public Message() {
// 		super();
// 	}
// 
// 	public Message(String senderName, String senderEmail, String ccEmail,
// 			String subject, String body, String receiverName,
// 			String receiverEmail) {
// 		super();
// 		this.senderName = senderName;
// 		this.senderEmail = senderEmail;
// 		this.ccEmail = ccEmail;
// 		this.subject = subject;
// 		this.body = body;
// 		this.receiverName = receiverName;
// 		this.receiverEmail = receiverEmail;
// 	}
// 
// 	public String getSenderName() {
// 		return senderName;
// 	}
// 
// 	public void setSenderName(String senderName) {
// 		this.senderName = senderName;
// 	}
// 
// 	public String getSenderEmail() {
// 		return senderEmail;
// 	}
// 
// 	public void setSenderEmail(String senderEmail) {
// 		this.senderEmail = senderEmail;
// 	}
// 
// 	public String getCcEmail() {
// 		return ccEmail;
// 	}
// 
// 	public void setCcEmail(String ccEmail) {
// 		this.ccEmail = ccEmail;
// 	}
// 
// 	public String getSubject() {
// 		return subject;
// 	}
// 
// 	public void setSubject(String subject) {
// 		this.subject = subject;
// 	}
// 
// 	public String getBody() {
// 		return body;
// 	}
// 
// 	public void setBody(String body) {
// 		this.body = body;
// 	}
// 
// 	public String getReceiverName() {
// 		return receiverName;
// 	}
// 
// 	public void setReceiverName(String receiverName) {
// 		this.receiverName = receiverName;
// 	}
// 
// 	public String getReceiverEmail() {
// 		return receiverEmail;
// 	}
// 
// 	public void setReceiverEmail(String receiverEmail) {
// 		this.receiverEmail = receiverEmail;
// 	}
// 
// }


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import com.getit.todoapp.domain.Feedback;
import com.getit.todoapp.service.EmailService;
import com.getit.todoapp.service.Message;
package com.getit.todoapp.rest;



@Controller
@RequestMapping("/feedback")
public class FeedbackController {
	
	@Autowired
	private EmailService emailService;
	
	@RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json")
    public ResponseEntity<String> createFromJson(@RequestBody String json) {
		Feedback feedback = Feedback.fromJsonToFeedback(json);
// Path: src/main/java/com/getit/todoapp/domain/Feedback.java
// public class Feedback {
// 	
// 	private String email;
// 	private String body;
// 	
// 	public String getEmail() {
// 		return email;
// 	}
// 	public void setEmail(String email) {
// 		this.email = email;
// 	}
// 	public String getBody() {
// 		return body;
// 	}
// 	public void setBody(String body) {
// 		this.body = body;
// 	}
// 	
// 	
// 	public static Feedback fromJsonToFeedback(String json) {
//         return new JSONDeserializer<Feedback>().use(null, Feedback.class).deserialize(json);
//     }
// 
// }
// 
// Path: src/main/java/com/getit/todoapp/service/EmailService.java
// public interface EmailService {
// 	StatusResponse send(Message message);
// }
// 
// Path: src/main/java/com/getit/todoapp/service/Message.java
// public class Message implements Serializable {
// 
// 	private static final long serialVersionUID = -4093981756240899937L;
// 	private String senderName;
// 	private String senderEmail;
// 	private String ccEmail;
// 	private String subject;
// 	private String body;
// 	private String receiverName;
// 	private String receiverEmail;
// 
// 	public Message() {
// 		super();
// 	}
// 
// 	public Message(String senderName, String senderEmail, String ccEmail,
// 			String subject, String body, String receiverName,
// 			String receiverEmail) {
// 		super();
// 		this.senderName = senderName;
// 		this.senderEmail = senderEmail;
// 		this.ccEmail = ccEmail;
// 		this.subject = subject;
// 		this.body = body;
// 		this.receiverName = receiverName;
// 		this.receiverEmail = receiverEmail;
// 	}
// 
// 	public String getSenderName() {
// 		return senderName;
// 	}
// 
// 	public void setSenderName(String senderName) {
// 		this.senderName = senderName;
// 	}
// 
// 	public String getSenderEmail() {
// 		return senderEmail;
// 	}
// 
// 	public void setSenderEmail(String senderEmail) {
// 		this.senderEmail = senderEmail;
// 	}
// 
// 	public String getCcEmail() {
// 		return ccEmail;
// 	}
// 
// 	public void setCcEmail(String ccEmail) {
// 		this.ccEmail = ccEmail;
// 	}
// 
// 	public String getSubject() {
// 		return subject;
// 	}
// 
// 	public void setSubject(String subject) {
// 		this.subject = subject;
// 	}
// 
// 	public String getBody() {
// 		return body;
// 	}
// 
// 	public void setBody(String body) {
// 		this.body = body;
// 	}
// 
// 	public String getReceiverName() {
// 		return receiverName;
// 	}
// 
// 	public void setReceiverName(String receiverName) {
// 		this.receiverName = receiverName;
// 	}
// 
// 	public String getReceiverEmail() {
// 		return receiverEmail;
// 	}
// 
// 	public void setReceiverEmail(String receiverEmail) {
// 		this.receiverEmail = receiverEmail;
// 	}
// 
// }


// Path: src/main/java/com/getit/todoapp/rest/FeedbackController.java
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import com.getit.todoapp.domain.Feedback;
import com.getit.todoapp.service.EmailService;
import com.getit.todoapp.service.Message;

package com.getit.todoapp.rest;



@Controller
@RequestMapping("/feedback")
public class FeedbackController {
	
	@Autowired
	private EmailService emailService;
	
	@RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json")
    public ResponseEntity<String> createFromJson(@RequestBody String json) {
		Feedback feedback = Feedback.fromJsonToFeedback(json);
        Message message=new Message();