Package com.geekabyte.jprowork.exceptions

Examples of com.geekabyte.jprowork.exceptions.RemoteAPIHandlerException


        params += "project_id=" + this.getProjectId();

        try {
            responseJson = RemoteAPIHandler.getJsonFromAPIEndPoint(APIendpoint.getProjectMembers, params);
        } catch (Exception e) {
            throw new RemoteAPIHandlerException("Error occured while calling API Endpoint", e);
        }
        Gson gson = new Gson();

        List<Member> resultList = gson.fromJson(responseJson,
                new TypeToken<List<Member>>() {
View Full Code Here


        params += "project_id=" + this.getProjectId();

        try {
            responseJson = RemoteAPIHandler.getJsonFromAPIEndPoint(APIendpoint.getProjectTasks, params);
        } catch (Exception e) {
            throw new RemoteAPIHandlerException("Error occured while calling API Endpoint.", e);
        }

        Gson gson = new Gson();

        List<Task> resultList = gson.fromJson(responseJson,
View Full Code Here

        params += "task_id=" + taskId;

        try {
            responseJson = RemoteAPIHandler.getJsonFromAPIEndPoint(APIendpoint.getProjectTask, params);
        } catch (Exception e) {
            throw new RemoteAPIHandlerException("Error occured while calling API Endpoint", e);
        }

        Gson gson = new Gson();

        Task task = gson.fromJson(responseJson, Task.class);
View Full Code Here

        params += "date=" + dueDate;

        try {
            responseJson = RemoteAPIHandler.postToAPIEndPoint(APIendpoint.addProjectTask, params);
        } catch (Exception e) {
            throw new RemoteAPIHandlerException("Error occured while performing POST operation to API Endpoint.", e);
        }

        Gson gson = new Gson();
        Map<String, String> resultMap = gson.fromJson(responseJson,
                new TypeToken<Map<String, String>>() {
View Full Code Here

        params += "title=" + title;

        try {
            responseJson = RemoteAPIHandler.postToAPIEndPoint(APIendpoint.addProjectTask, params);
        } catch (Exception e) {
            throw new RemoteAPIHandlerException("Error occured while Posting to the API Endpoint", e);
        }

        Gson gson = new Gson();
        Map<String, String> resultMap = gson.fromJson(responseJson,
                new TypeToken<Map<String, String>>() {
View Full Code Here

        params += "task_id=" + taskId;

        try {
            responseJson = RemoteAPIHandler.getJsonFromAPIEndPoint(APIendpoint.deleteProjectTask, params);
        } catch (Exception e) {
            throw new RemoteAPIHandlerException("Error occured while calling the API Endpoint", e);
        }

        Gson gson = new Gson();
        Map<String, String> resultMap = gson.fromJson(responseJson,
                new TypeToken<Map<String, String>>() {
View Full Code Here

TOP

Related Classes of com.geekabyte.jprowork.exceptions.RemoteAPIHandlerException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.