Package com.impetus.client.twitter.entities

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


        twitter.createEntityManager();
        UserMongo user1 = twitter.findUserById(userId1);
        assertUser1(user1);

        user1.setPersonalDetail(new PersonalDetailMongo("Vivek", "unknown", "Married"));
        user1.addTweet(new TweetMongo("My Third Tweet", "iPhone"));
        twitter.mergeUser(user1);

        UserMongo user1AfterMerge = twitter.findUserById(userId1);

        assertUpdatedUser1(user1AfterMerge);
View Full Code Here


        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"));
        user1.addTweet(new TweetMongo("Second Tweet from me", "Mobile"));
        return user1;
    }
View Full Code Here

        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"));
        user2.addTweet(new TweetMongo("Another tweet from Saurabh", "text"));
        return user2;
    }
View Full Code Here

    @Override
    public void addTweet(String userId, String tweetBody, String device)
    {
        UserMongo user = em.find(UserMongo.class, userId);
        user.addTweet(new TweetMongo(tweetBody, device));
        em.persist(user);
    }
View Full Code Here

TOP

Related Classes of com.impetus.client.twitter.entities.TweetMongo

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.