Package kirin.client.model

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


      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

Related Classes of kirin.client.model.AlbumModel

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.