Example usage for twitter4j StatusDeletionNotice getStatusId

List of usage examples for twitter4j StatusDeletionNotice getStatusId

Introduction

In this page you can find the example usage for twitter4j StatusDeletionNotice getStatusId.

Prototype

long getStatusId();

Source Link

Usage

From source file:uk.co.flax.ukmp.twitter.TweetDeletionThread.java

License:Apache License

private void removeDeletedFromQueue(List<String> deletedIds, List<StatusDeletionNotice> deleteList) {
    // Remove the deleted IDs from the delete list
    for (Iterator<StatusDeletionNotice> it = deleteList.iterator(); it.hasNext();) {
        StatusDeletionNotice sdn = it.next();
        if (deletedIds.contains("" + sdn.getStatusId())) {
            it.remove();//  ww  w.  jav a 2  s.c o  m
        }
    }
}

From source file:uk.co.flax.ukmp.twitter.UKMPStatusStreamHandler.java

License:Apache License

@Override
public void onDeletionNotice(StatusDeletionNotice statusDeletionNotice) {
    LOGGER.debug("{} : handling status deletion for user {}, status ID {}", name,
            statusDeletionNotice.getUserId(), statusDeletionNotice.getStatusId());
    searchEngine.deleteStatus(statusDeletionNotice.getUserId(), statusDeletionNotice.getStatusId());
}