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 Details

  • Method Details

    • tweetToRecord

      void tweetToRecord(Status tweet, Record record, IEntityExpansionPolicy entityExpansionPolicy)
    • userToRecord

      void userToRecord(User user, Record record, IEntityExpansionPolicy entityExpansionPolicy)
    • userListToRecord

      void userListToRecord(UserList userList, Record record, IEntityExpansionPolicy entityExpansionPolicy)
    • geoLocationToString

      String geoLocationToString(GeoLocation[][] coordinates)
      Formats the coordinates as comma-separated [[lat,long],...] groups, or returns null if they are null.
    • entitiesToArray

      String[] entitiesToArray(TweetEntity[] entities, String entityPrefix)
      Returns entityPrefix plus entityToString(TweetEntity) for each entity, or null if there are none.
    • entityToString

      String entityToString(TweetEntity entity)
      Returns the entity's text, using the expanded URL for URL entities when present, or null for a null entity.
    • entitiesToString

      String entitiesToString(TweetEntity[] entities, String entityPrefix, String separator)
      Joins the entities' prefixed texts with separator, or returns null if there are no entities.