Class TwitterFollowWriter


public class TwitterFollowWriter extends TwitterWriter
Follows accounts written to it.
  • Constructor Details

    • TwitterFollowWriter

      public TwitterFollowWriter(TwitterProvider provider, String userScreenNameField)
    • TwitterFollowWriter

      public TwitterFollowWriter(String consumerKey, String consumerSecret, String screenNameField)
    • TwitterFollowWriter

      public TwitterFollowWriter(String consumerKey, String consumerSecret, String accessToken, String accessTokenSecret, String userScreenNameField)
  • Method Details

    • getUserScreenNameField

      public String getUserScreenNameField()
    • isAddUserToRecord

      public boolean isAddUserToRecord()
      Indicates if the followed user's details are added to each written record (default is false).
    • setAddUserToRecord

      public TwitterFollowWriter setAddUserToRecord(boolean addUserToRecord)
      Indicates if the followed user's details are added to each written record (default is false).
    • isMuteUser

      public boolean isMuteUser()
      Indicates if each followed user is also muted (default is false).
    • setMuteUser

      public TwitterFollowWriter setMuteUser(boolean muteUser)
      Indicates if each followed user is also muted (default is false).
    • writeImpl

      protected void writeImpl(Record record) throws Throwable
      Description copied from class: DataWriter
      Overridden by subclasses to write the specified record to this DataWriter.

      Contract for subclasses (see also docs/authoring/DataWriter.md):

      Specified by:
      writeImpl in class DataWriter
      Throws:
      Throwable
    • addExceptionProperties

      public DataException addExceptionProperties(DataException exception)
      Description copied from class: Endpoint
      Adds this endpoint's current state to a DataException. Since this method is called whenever an exception is thrown, subclasses should override it to add their specific information.
      Overrides:
      addExceptionProperties in class TwitterWriter