Package com.ikanow.infinit.e.data_model.api.ResponsePojo

Examples of com.ikanow.infinit.e.data_model.api.ResponsePojo.ResponseObject


    try
    {
      String addCommunityAddress = apiRoot + "social/share/add/community/" + shareId + "/" + URLEncoder.encode(comment,"UTF-8") + "/" + URLEncoder.encode(communityId,"UTF-8");
      String updateResult = sendRequest(addCommunityAddress, null);
      ResponsePojo internal_responsePojo = ResponsePojo.fromApi(updateResult, ResponsePojo.class);
      ResponseObject internal_ro = internal_responsePojo.getResponse();
      responseObject = shallowCopy(responseObject, internal_ro);

      return responseObject.isSuccess();

    }
View Full Code Here


  {
    try{
      String addCommunityAddress = apiRoot + "social/share/remove/community/" + shareId + "/" + URLEncoder.encode(communityId,"UTF-8");
      String updateResult = sendRequest(addCommunityAddress, null);
      ResponsePojo internal_responsePojo = ResponsePojo.fromApi(updateResult, ResponsePojo.class);
      ResponseObject internal_ro = internal_responsePojo.getResponse();
      responseObject = shallowCopy(responseObject, internal_ro);

      return responseObject.isSuccess();

    }
View Full Code Here

    try
    {
      String deletePersonAddress = apiRoot + "social/person/delete/" + URLEncoder.encode(personId,"UTF-8");
      String deleteResult = sendRequest(deletePersonAddress, null);
      ResponsePojo internal_responsePojo = ResponsePojo.fromApi(deleteResult, ResponsePojo.class);
      ResponseObject internal_ro = internal_responsePojo.getResponse();
      responseObject = shallowCopy(responseObject, internal_ro);
     
      return responseObject.getMessage();
    }
    catch (Exception e)
View Full Code Here

      if (personId != null)
        getPersonAddress +=  "/" + URLEncoder.encode(personId,"UTF-8");

      String getResult = sendRequest(getPersonAddress, null);
      ResponsePojo internal_responsePojo = ResponsePojo.fromApi(getResult, ResponsePojo.class, PersonPojo.class, new PersonPojoApiMap())
      ResponseObject internal_ro = internal_responsePojo.getResponse();
      responseObject = shallowCopy(responseObject, internal_ro);
      return (PersonPojo)internal_responsePojo.getData();

    }
    catch (Exception e)
View Full Code Here

    try
    {
      String listPersonAddress = apiRoot + "social/person/list";     
      String getResult = sendRequest(listPersonAddress, null);
      ResponsePojo internal_responsePojo = ResponsePojo.fromApi(getResult, ResponsePojo.class);
      ResponseObject internal_ro = internal_responsePojo.getResponse();     
      responseObject = shallowCopy(responseObject, internal_ro);
      List<PersonPojo> people = null;
      people = ApiManager.mapListFromApi((JsonElement)internal_responsePojo.getData(), PersonPojo.listType(), new PersonPojoApiMap());
     
      return people;                 
View Full Code Here

    String theUrl = apiRoot + "social/person/register";
    String data =  new Gson().toJson(wpSetup);
    String registerResult = sendRequest(theUrl, data);
    ResponsePojo internal_responsePojo = ResponsePojo.fromApi(registerResult, ResponsePojo.class);
    ResponseObject internal_ro = internal_responsePojo.getResponse();
    responseObject = shallowCopy(responseObject, internal_ro);
   
    return responseObject.getMessage();
  }
View Full Code Here

    String theUrl = apiRoot + "social/person/update";
    String data = "{ \"user\":" + new Gson().toJson(wpuser) + ", \"auth\":" + new Gson().toJson(wpauth) + "}";
    String updateResult = sendRequest(theUrl, data);
    ResponsePojo internal_responsePojo = ResponsePojo.fromApi(updateResult, ResponsePojo.class);
    ResponseObject internal_ro = internal_responsePojo.getResponse();
    responseObject = shallowCopy(responseObject, internal_ro);
   
    return responseObject.getMessage();
  }
View Full Code Here

    try
    {
      String updatePasswordAddress = apiRoot + "social/person/update/password/" + URLEncoder.encode(id,"UTF-8") + "/" + URLEncoder.encode(newPassword,"UTF-8");
      String updateResult = sendRequest(updatePasswordAddress, null);
      ResponsePojo internal_responsePojo = ResponsePojo.fromApi(updateResult, ResponsePojo.class);
      ResponseObject internal_ro = internal_responsePojo.getResponse();
      responseObject = shallowCopy(responseObject, internal_ro);
   
      return responseObject.getMessage();
    }
    catch (Exception e)
View Full Code Here

    try{
      String getSourceAddress = apiRoot + "config/source/get/" + URLEncoder.encode(sourceId,"UTF-8");

      String getResult = sendRequest(getSourceAddress, null);
      ResponsePojo internal_responsePojo = ResponsePojo.fromApi(getResult, ResponsePojo.class, SourcePojo.class, new SourcePojoApiMap(null))
      ResponseObject internal_ro = internal_responsePojo.getResponse();
      responseObject = shallowCopy(responseObject, internal_ro);
      return (SourcePojo)internal_responsePojo.getData();

    }
    catch (Exception e)
View Full Code Here

    try {
      String address = apiRoot + "config/source/save/" + communityId + "/";
      String saveResult;
      saveResult = sendRequest(address, new Gson().toJson(source));
      ResponsePojo internal_responsePojo = ResponsePojo.fromApi(saveResult, ResponsePojo.class, SourcePojo.class, new SourcePojoApiMap(null));
      ResponseObject internal_ro = internal_responsePojo.getResponse();
      responseObject = shallowCopy(responseObject, internal_ro);
      return (SourcePojo)internal_responsePojo.getData();
    }
    catch (Exception e)
    {
View Full Code Here

TOP

Related Classes of com.ikanow.infinit.e.data_model.api.ResponsePojo.ResponseObject

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.