Example usage for twitter4j TwitterObjectFactory createDirectMessage

List of usage examples for twitter4j TwitterObjectFactory createDirectMessage

Introduction

In this page you can find the example usage for twitter4j TwitterObjectFactory createDirectMessage.

Prototype

public static DirectMessage createDirectMessage(String rawJSON) throws TwitterException 

Source Link

Document

Constructs a DirectMessage object from rawJSON string.

Usage

From source file:net.lacolaco.smileessence.util.TwitterMock.java

License:Open Source License

public DirectMessage getDirectMessageMock() throws IOException, TwitterException {
    return TwitterObjectFactory.createDirectMessage(getJson("directmessage.json"));
}