Examples of PreferenceMongo


Examples of com.impetus.client.twitter.entities.PreferenceMongo

     * Save preference.
     */
    protected void savePreference()
    {
        twitter.createEntityManager();
        twitter.savePreference(userId1, new PreferenceMongo("P1", "Motif", "2"));
        twitter.closeEntityManager();

        twitter.createEntityManager();
        twitter.savePreference(userId2, new PreferenceMongo("P2", "High Contrast", "3"));
        twitter.closeEntityManager();
    }
View Full Code Here

Examples of com.impetus.client.twitter.entities.PreferenceMongo

     */
    private UserMongo buildUser1()
    {
        UserMongo user1 = new UserMongo(userId1, "Amresh", "password1", "married");

        user1.setPreference(new PreferenceMongo("P1", "Motif", "2"));

        user1.addExternalLink(new ExternalLinkMongo("L1", "Facebook", "http://facebook.com/coolnerd"));
        user1.addExternalLink(new ExternalLinkMongo("L2", "LinkedIn", "http://linkedin.com/in/devilmate"));

        user1.addTweet(new TweetMongo("Here is my first tweet", "Web"));
View Full Code Here

Examples of com.impetus.client.twitter.entities.PreferenceMongo

     */
    private UserMongo buildUser2()
    {
        UserMongo user2 = new UserMongo(userId2, "Saurabh", "password2", "single");

        user2.setPreference(new PreferenceMongo("P2", "High Contrast", "3"));

        user2.addExternalLink(new ExternalLinkMongo("L3", "GooglePlus", "http://plus.google.com/inviteme"));
        user2.addExternalLink(new ExternalLinkMongo("L4", "Yahoo", "http://yahoo.com/profiles/itsmeamry"));

        user2.addTweet(new TweetMongo("Saurabh tweets for the first time", "Phone"));
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.