Interface ITwitterConverter
- All Known Implementing Classes:
TwitterConverter
public interface ITwitterConverter
Copies Twitter tweets, users and user lists into records;
TwitterConverter is the default implementation.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionString[]entitiesToArray(TweetEntity[] entities, String entityPrefix) ReturnsentityPrefixplusentityToString(TweetEntity)for each entity, or null if there are none.entitiesToString(TweetEntity[] entities, String entityPrefix, String separator) Joins the entities' prefixed texts withseparator, or returns null if there are no entities.entityToString(TweetEntity entity) Returns the entity's text, using the expanded URL for URL entities when present, or null for a null entity.geoLocationToString(GeoLocation[][] coordinates) Formats the coordinates as comma-separated[[lat,long],...]groups, or returns null if they are null.voidtweetToRecord(Status tweet, Record record, IEntityExpansionPolicy entityExpansionPolicy) voiduserListToRecord(UserList userList, Record record, IEntityExpansionPolicy entityExpansionPolicy) voiduserToRecord(User user, Record record, IEntityExpansionPolicy entityExpansionPolicy)
-
Field Details
-
DEFAULT
-
-
Method Details
-
tweetToRecord
-
userToRecord
-
userListToRecord
void userListToRecord(UserList userList, Record record, IEntityExpansionPolicy entityExpansionPolicy) -
geoLocationToString
Formats the coordinates as comma-separated[[lat,long],...]groups, or returns null if they are null. -
entitiesToArray
ReturnsentityPrefixplusentityToString(TweetEntity)for each entity, or null if there are none. -
entityToString
Returns the entity's text, using the expanded URL for URL entities when present, or null for a null entity. -
entitiesToString
Joins the entities' prefixed texts withseparator, or returns null if there are no entities.
-