Package com.impetus.client.twitter.entities

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


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


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

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

        UserRDBMS user1AfterMerge = twitter.findUserById(userId1);

        assertUpdatedUser1(user1AfterMerge);
View Full Code Here

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

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

        user1.addTweet(new TweetRDBMS("Here is my first tweet", "Web"));
        user1.addTweet(new TweetRDBMS("Second Tweet from me", "Mobile"));
        return user1;
    }
View Full Code Here

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

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

        user2.addTweet(new TweetRDBMS("Saurabh tweets for the first time", "Phone"));
        user2.addTweet(new TweetRDBMS("Another tweet from Saurabh", "text"));
        return user2;
    }
View Full Code Here

TOP

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

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.