Package com.google.api.services.plus.model

Examples of com.google.api.services.plus.model.Activity$Actor$Image


        }

        System.out.println(" =========  images ======== ");
        List<Image> images = artist.getImages();
        for (int i = 0; i < images.size(); i++) {
            Image image = images.get(i);
            image.dump();
        }

        System.out.println(" =========  news ======== ");
        List<News> newsList = artist.getNews();
        for (int i = 0; i < newsList.size(); i++) {
View Full Code Here


            Plus plus = new Plus.Builder(TRANSPORT, JSON_FACTORY, credential)
            .setApplicationName(Constants.GOOGLE_APPLICATION_NAME)
            .build();

            // Re-acquisition of Activity
            Activity activity = null;
            try {
                activity = plus.activities().get(activityModel.getKey().getName()).execute();

            } catch (GoogleJsonResponseException e) {
                // When deleted
                if(e.getStatusCode() == 404) {
//                    logger.info("Activity Delete");
                    delete(userModel, activityModel);

                    return true;
                }
            }


            if(activity != null) {
                Date oldModelUpdateDate = activityModel.getUpdated();
                Date newModelUpdateDate = new Date(activity.getUpdated().getValue());

                // Activity Is Updated
                if(!oldModelUpdateDate.equals(newModelUpdateDate)) {
//                    logger.info("Activity Update!");
                    // Replace Activity And UpdateCheckDate
View Full Code Here

            Plus plus = new Plus.Builder(TRANSPORT, JSON_FACTORY, credential)
            .setApplicationName(Constants.GOOGLE_APPLICATION_NAME)
            .build();

            // Re-acquisition of Activity
            Activity activity = null;
            try {
                activity = plus.activities().get(activityModel.getKey().getName()).execute();

            } catch (GoogleJsonResponseException e) {
                // When deleted
                if(e.getStatusCode() == 404) {
                    ActivityService.delete(userModel, activityModel);

                    return true;
                }
            }


            if(activity != null) {
                Date oldModelUpdateDate = activityModel.getUpdated();
                Date newModelUpdateDate = new Date(activity.getUpdated().getValue());

                // Activity Is Updated
                if(!oldModelUpdateDate.equals(newModelUpdateDate)) {
                    // Replace Activity And UpdateCheckDate
                    ActivityService.putActivity(activity, userModel);
View Full Code Here

      for (Object obj : allNodes)
    {
        //get entity of Node
      if (obj instanceof Actor)
      {
        Actor act = (Actor) obj;
        entity = act.getEntity();
      }
      else if (obj instanceof Complex)
      {
        Complex com = (Complex) obj;
        entity = com.getEntity();
View Full Code Here

      {
        NodeModel model = (NodeModel) o;

        if (model instanceof Actor)
        {
          Actor actor = (Actor) model;

          System.out.println(actor.getEntity().l3pe.getRDFId());
        }
        else if (o instanceof ChbComplex)
        {
          ChbComplex cmp = (ChbComplex) o;
          System.out.println(cmp.getComplex().getRDFId());
View Full Code Here

TOP

Related Classes of com.google.api.services.plus.model.Activity$Actor$Image

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.