package com.vogella.jersey.first;

import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;

import com.vogella.jersey.first.response.Response;
import com.vogella.jersey.first.response.ResponseManager;

@Path("/account")
public class AddChatMessageService {

	@GET
	@Produces(MediaType.APPLICATION_JSON)
	public String service(@QueryParam("token")String token,
			@QueryParam("id")String id,
			@QueryParam("password")String password,
			@QueryParam("message")String message,
			@QueryParam("type")int type
			) {
		Response response = ResponseManager.getInstance().getAccountInfoResponse(token,id,password);
		return response.toJson();
	}
	
} 