Examples of TweetPoll


Examples of org.encuestame.persistence.domain.tweetpoll.TweetPoll

             Date creationDate,
             Boolean completed,
             Account tweetOwner,
             Question question,
             final UserAccount userAccount){
        final TweetPoll tweetPoll = new TweetPoll();
        tweetPoll.setCloseNotification(closeNotification);
        tweetPoll.setResultNotification(resultNotification);
        tweetPoll.setAllowLiveResults(allowLiveResults);
        tweetPoll.setCompleted(completed);
        tweetPoll.setPublishTweetPoll(publishTweetPoll);
        tweetPoll.setQuestion(question);
        tweetPoll.setScheduleDate(scheduleDate);
        tweetPoll.setScheduleTweetPoll(scheduleTweetPoll);
        // The create date always have to be the date of creation
        tweetPoll.setCreateDate(creationDate);
        tweetPoll.setFavourites(Boolean.TRUE);
        tweetPoll.setTweetOwner(tweetOwner);
        // The update date is the date when the tweetpoll has been updated, included the
        // publication date
        tweetPoll.setUpdatedDate(creationDate);
        tweetPoll.setEditorOwner(userAccount);
        tweetPoll.setRelevance(1L);
        getTweetPoll().saveOrUpdate(tweetPoll);
        return tweetPoll;
    }
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.