twitter4j.Status Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of twitter4j-core Show documentation
Show all versions of twitter4j-core Show documentation
A Java library for the Twitter API
The newest version!
/*
* Copyright 2007 Yusuke Yamamoto
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package twitter4j;
import java.util.Date;
/**
* A data interface representing one single status of a user.
*
* @author Yusuke Yamamoto - yusuke at mac.com
*/
public interface Status extends Comparable, TwitterResponse,
EntitySupport, java.io.Serializable {
/**
* Return the created_at
*
* @return created_at
* @since Twitter4J 1.1.0
*/
Date getCreatedAt();
/**
* Returns the id of the status
*
* @return the id
*/
long getId();
/**
* Returns the text of the status
*
* @return the text
*/
String getText();
/**
* Returns the source
*
* @return the source
* @since Twitter4J 1.0.4
*/
String getSource();
/**
* Test if the status is truncated
*
* @return true if truncated
* @since Twitter4J 1.0.4
*/
boolean isTruncated();
/**
* Returns the in_reply_tostatus_id
*
* @return the in_reply_tostatus_id
* @since Twitter4J 1.0.4
*/
long getInReplyToStatusId();
/**
* Returns the in_reply_user_id
*
* @return the in_reply_tostatus_id
* @since Twitter4J 1.0.4
*/
long getInReplyToUserId();
/**
* Returns the in_reply_to_screen_name
*
* @return the in_in_reply_to_screen_name
* @since Twitter4J 2.0.4
*/
String getInReplyToScreenName();
/**
* Returns The location that this tweet refers to if available.
*
* @return returns The location that this tweet refers to if available (can be null)
* @since Twitter4J 2.1.0
*/
GeoLocation getGeoLocation();
/**
* Returns the place attached to this status
*
* @return The place attached to this status
* @since Twitter4J 2.1.1
*/
Place getPlace();
/**
* Test if the status is favorited
*
* @return true if favorited
* @since Twitter4J 1.0.4
*/
boolean isFavorited();
/**
* Test if the status is retweeted
*
* @return true if retweeted
* @since Twitter4J 3.0.4
*/
boolean isRetweeted();
/**
* Indicates approximately how many times this Tweet has been "favorited" by Twitter users.
*
* @return the favorite count
* @since Twitter4J 3.0.4
*/
int getFavoriteCount();
/**
* Return the user associated with the status.
* This can be null if the instance is from User.getStatus().
*
* @return the user
*/
User getUser();
/**
* @since Twitter4J 2.0.10
* @return if the status is retweet or not
*/
boolean isRetweet();
/**
* @since Twitter4J 2.1.0
* @return retweeted status
*/
Status getRetweetedStatus();
/**
* Returns an array of contributors, or null if no contributor is associated with this status.
*
* @since Twitter4J 2.2.3
* @return contributors
*/
long[] getContributors();
/**
* Returns the number of times this tweet has been retweeted, or -1 when the tweet was
* created before this feature was enabled.
*
* @return the retweet count.
*/
int getRetweetCount();
/**
* Returns true if the authenticating user has retweeted this tweet, or false when the tweet was
* created before this feature was enabled.
*
* @return whether the authenticating user has retweeted this tweet.
* @since Twitter4J 2.1.4
*/
boolean isRetweetedByMe();
/**
* Returns the authenticating user's retweet's id of this tweet, or -1L when the tweet was created
* before this feature was enabled.
*
* @return the authenticating user's retweet's id of this tweet
* @since Twitter4J 3.0.1
*/
long getCurrentUserRetweetId();
/**
* Returns true if the status contains a link that is identified as sensitive.
*
* @return whether the status contains sensitive links
* @since Twitter4J 3.0.0
*/
boolean isPossiblySensitive();
/**
* Returns the lang of the status text if available.
*
* @return two-letter iso language code
* @since Twitter4J 3.0.6
*/
String getLang();
/**
* Returns the targeting scopes applied to a status.
*
* @return the targeting scopes applied to a status.
* @since Twitter4J 3.0.6
*/
Scopes getScopes();
/**
* Returns the list of country codes where the tweet is withheld
*
* @return list of country codes where the tweet is withheld - null if not withheld
* @since Twitter4j 4.0.3
*/
String[] getWithheldInCountries();
/**
* Returns the Tweet ID of the quoted Tweet
*
* @return the Tweet ID of the quoted Tweet
* @since Twitter4J 4.0.4
*/
long getQuotedStatusId();
/**
* Returns the Tweet object of the original Tweet that was quoted.
*
* @return the quoted Tweet object
* @since Twitter4J 4.0.4
*/
Status getQuotedStatus();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy