Package com.ikanow.infinit.e.data_model.api.social.sharing

Examples of com.ikanow.infinit.e.data_model.api.social.sharing.SharePojoApiMap


    String share_string = share_ref.toDb().toString();
   
    Representation entity = new StringRepresentation(share_string);
    Representation rep = shareV2Interface.post(entity);
    ResponsePojo rp = ResponsePojo.fromApi( rep.getText(), null, ResponsePojo.class);
    SharePojo share = ApiManager.mapFromApi((JsonElement)rp.getData(), SharePojo.class, new SharePojoApiMap(null));
    return share;
  }
View Full Code Here


    String share_string = share_bin.toDb().toString();
   
    Representation entity = new StringRepresentation(share_string);
    Representation rep = shareV2Interface.post(entity);
    ResponsePojo rp = ResponsePojo.fromApi( rep.getText(), null, ResponsePojo.class);
    SharePojo share = ApiManager.mapFromApi((JsonElement)rp.getData(), SharePojo.class, new SharePojoApiMap(null));
    return share;
  }
View Full Code Here

    Set<DocumentPojo> docset = DocumentPojo.listFromDb(documentDb.find(query).limit(3), new TypeToken<Set<DocumentPojo>>(){});
    System.out.println("DOCSET="+DocumentPojo.listToDb(docset, new TypeToken<Set<DocumentPojo>>(){}));
   
    // Shares - demonstrate mapping of _ids across to the API (and that binary data is discarded):
    List<SharePojo> shares = SharePojo.listFromDb(DbManager.getSocial().getShare().find().limit(10), SharePojo.listType());
    System.out.println("SHARE="+ApiManager.mapListToApi(shares, SharePojo.listType(), new SharePojoApiMap(null)));
   
// Index testing:
   
    ////////////////////////////////////////////////
    //CANONICAL EXAMPLE:
View Full Code Here

TOP

Related Classes of com.ikanow.infinit.e.data_model.api.social.sharing.SharePojoApiMap

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.