Inheritance
System.Object
Expression
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: TwitterSharp.dll
Methods
|
Improve this Doc
View Source
And(Expression[])
Tweet match all the expressions given in parameter
Declaration
public Expression And(params Expression[] others)
Parameters
Returns
|
Improve this Doc
View Source
Any tweet sent from a specific user
Declaration
public static Expression Author(string username)
Parameters
Type |
Name |
Description |
System.String |
username |
|
Returns
|
Improve this Doc
View Source
Match a keyword within the tweet publisher's user bio name
Declaration
public static Expression Bio(string keyword)
Parameters
Type |
Name |
Description |
System.String |
keyword |
|
Returns
|
Improve this Doc
View Source
Match tweet that are published by users whose location contains a specific keyword
Declaration
public static Expression BioLocation(string location)
Parameters
Type |
Name |
Description |
System.String |
location |
|
Returns
|
Improve this Doc
View Source
Width and height of the box must be less than 25 miles
Declaration
public static Expression BoundingBox(string westLongitude, string southLatitude, string eastLongitude, string northLatitude)
Parameters
Type |
Name |
Description |
System.String |
westLongitude |
Longitude of the southwest corner, is in range of ±180, decimal degree
|
System.String |
southLatitude |
Latitude of the southwest corner, is in range of ±90, decimal degree
|
System.String |
eastLongitude |
Longitude of the northeast corner, is in range of ±180, decimal degree
|
System.String |
northLatitude |
Latitude of the northeast corner, is in range of ±90, decimal degree
|
Returns
|
Improve this Doc
View Source
Any tweet with the given cashtag
Declaration
public static Expression Cashtag(string entity)
Parameters
Type |
Name |
Description |
System.String |
entity |
|
Returns
|
Improve this Doc
View Source
Declaration
public static Expression Context(string str)
Parameters
Type |
Name |
Description |
System.String |
str |
|
Returns
|
Improve this Doc
View Source
Match tweet with a specific conversation ID
A conversation ID is the ID of a tweet that started a conversation
Declaration
public static Expression ConversationId(string id)
Parameters
Type |
Name |
Description |
System.String |
id |
|
Returns
|
Improve this Doc
View Source
Match an entity (parameter is the string declaration of entity/place)
Declaration
public static Expression Entity(string str)
Parameters
Type |
Name |
Description |
System.String |
str |
|
Returns
|
Improve this Doc
View Source
Only match tweets that contains at least one cashtag
Declaration
public static Expression HasCashtags()
Returns
|
Improve this Doc
View Source
Only match tweet that contains geolocation data
Declaration
public static Expression HasGeo()
Returns
|
Improve this Doc
View Source
Only match tweets that contains at least one hashtag
Declaration
public static Expression HasHashtags()
Returns
|
Improve this Doc
View Source
Any tweet with the given hashtag
Declaration
public static Expression Hashtag(string entity)
Parameters
Type |
Name |
Description |
System.String |
entity |
|
Returns
|
Improve this Doc
View Source
Only match tweets that contains an URL to an image
Declaration
public static Expression HasImages()
Returns
|
Improve this Doc
View Source
Only match tweets that contains at least one link/media in their body
Declaration
public static Expression HasLinks()
Returns
|
Improve this Doc
View Source
Only match tweets that contains at least one media (photo/GIF/video)
Doesn't match media created with Periscope or tweets that link to other media hosting sites
Declaration
public static Expression HasMedia()
Returns
|
Improve this Doc
View Source
Only match tweets that mention another user
Declaration
public static Expression HasMentions()
Returns
|
Improve this Doc
View Source
Only match tweets that contains a video uploaded to
Doesn't match media created with Periscope or tweets that link to other media hosting sites
Declaration
public static Expression HasVideos()
Returns
|
Improve this Doc
View Source
Remove tweets created for promotion only on ads.twitter.com
Can't be negated
Declaration
public static Expression IsNotNullcast()
Returns
|
Improve this Doc
View Source
Declaration
public static Expression IsQuote()
Returns
|
Improve this Doc
View Source
Declaration
public static Expression IsReply()
Returns
|
Improve this Doc
View Source
Match retweets (doesn't include quote tweets)
Declaration
public static Expression IsRetweet()
Returns
|
Improve this Doc
View Source
Only match tweets from verified accounts
Declaration
public static Expression IsVerified()
Returns
|
Improve this Doc
View Source
Match a keyword in the body of a tweet
Declaration
public static Expression Keyword(string str)
Parameters
Type |
Name |
Description |
System.String |
str |
|
Returns
|
Improve this Doc
View Source
Match tweets that has been classified as being of a specific language
A tweet can only be of one language
Declaration
public static Expression Lang(string countryCode)
Parameters
Type |
Name |
Description |
System.String |
countryCode |
Must be a valid BCP 47 code
|
Returns
|
Improve this Doc
View Source
Any tweet that contains a mention of the given user
Declaration
public static Expression Mention(string username)
Parameters
Type |
Name |
Description |
System.String |
username |
|
Returns
|
Improve this Doc
View Source
Tweet match the negation of the current expression
Declaration
public Expression Negate()
Returns
|
Improve this Doc
View Source
Tweet match one of the expression given in parameter
Declaration
public Expression Or(params Expression[] others)
Parameters
Returns
|
Improve this Doc
View Source
Tweets tagged with a specific location
Declaration
public static Expression Place(string location)
Parameters
Type |
Name |
Description |
System.String |
location |
|
Returns
|
Improve this Doc
View Source
Tweets tagged with a specific country
Declaration
public static Expression PlaceCountry(string country)
Parameters
Type |
Name |
Description |
System.String |
country |
Must be a valid ISO 3166-1 alpha-2 code
|
Returns
|
Improve this Doc
View Source
Match against the geocoordinate of a tweet
Declaration
public static Expression PointRadius(string longitude, string latitude, string radius, RadiusUnit radiusUnit)
Parameters
Type |
Name |
Description |
System.String |
longitude |
Must be in decimal degree, is in range of ±90
|
System.String |
latitude |
Must be in decimal degree, is in range of ±180
|
System.String |
radius |
Must be less than 25 miles
|
RadiusUnit |
radiusUnit |
|
Returns
|
Improve this Doc
View Source
Any tweet that is in reply to a specific user
Declaration
public static Expression Recipient(string username)
Parameters
Type |
Name |
Description |
System.String |
username |
|
Returns
|
Improve this Doc
View Source
Match tweet that are a retweet of a specific user
Declaration
public static Expression Retweet(string username)
Parameters
Type |
Name |
Description |
System.String |
username |
|
Returns
|
Improve this Doc
View Source
Only returns a percentage of tweet that match a rule
Declaration
public static Expression Sample(int percent)
Parameters
Type |
Name |
Description |
System.Int32 |
percent |
|
Returns
|
Improve this Doc
View Source
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.Object.ToString()
|
Improve this Doc
View Source
Match a valid tweeter URL
Declaration
public static Expression Url(string twitterUrl)
Parameters
Type |
Name |
Description |
System.String |
twitterUrl |
|
Returns