Examples of AlbumModel


Examples of com.appspot.plucial.model.AlbumModel

     * @param model
     * @return
     */
    public static AlbumModel put(ActivityModel activityModel, String url, String imageUrl, Long height, long width) {

        AlbumModel model = new AlbumModel();
        model.setUrl(new Text(url));
        model.setImageUrl(new Text(imageUrl));
        model.setHeight(height);
        model.setWidth(width);

        // 親の設定
        model.getActivityModelRef().setModel(activityModel);

        // 永久化
        dao.put(model);

        return model;
View Full Code Here

Examples of kirin.client.model.AlbumModel

    final FlexTable m_layout = new FlexTable();
    o_layout.setCellSpacing(6);
    FlexCellFormatter o_cellFormatter = o_layout.getFlexCellFormatter();
    o_cellFormatter.setColSpan(0, 0, 6);

    AlbumModel currentAlbum = contactModel.getAlbumList().get(selectedIdx);

    if (currentAlbum.getPhotos() == null || currentAlbum.getPhotos().size() == 0) {

      kirinService.loadPhoto(contactModel.getNikeName(), currentAlbum.getAlbumid(), new AsyncCallback<List<PhotoModel>>() {
        @Override
        public void onSuccess(List<PhotoModel> result) {

          int i = 0, j = 0;
View Full Code Here

Examples of kirin.client.model.AlbumModel

      service.setAuthSubToken(this.getThreadLocalRequest().getSession().getAttribute("sessionToken").toString());

      URL feedUrl = new URL("https://picasaweb.google.com/data/feed/api/user/" + userId + "?kind=album");

      UserFeed userFeed = service.getFeed(feedUrl, UserFeed.class);
      AlbumModel albumModel = null;

      for (AlbumEntry albumEntry : userFeed.getAlbumEntries()) {
        albumModel = new AlbumModel();
        albumModel.setAlbumid(albumEntry.getGphotoId());
        albumModel.setName(albumEntry.getTitle().getPlainText());
        albumModel.setUpdate(albumEntry.getUpdated().toString());
        result.add(albumModel);
      }
    } catch (Exception e) {
      // log.error(e);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.