Back to project page ara-twitter.
The source code is released under:
Apache License
If you think the Android project ara-twitter listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.bakingcode.io.twitter.model; /*w w w . ja va 2s .c o m*/ import org.json.JSONException; import org.json.JSONObject; /** * Cursor of a generic class provides cursoring capabilities around a list of instances returned by * Twitter API as a list. https://dev.twitter.com/docs/misc/cursoring */ public class Cursor { /** * Previous cursor */ protected long previousCursor; /** * Next cursor */ protected long nextCursor; /** * Default constructor * @param json */ public Cursor(JSONObject json) { try { previousCursor = json.getLong("previous_cursor"); nextCursor = json.getLong("next_cursor"); } catch (JSONException e) { e.printStackTrace(); } } /** * Gets the previous cursor * @return */ public long getPreviousCursor() { return previousCursor; } /** * Gets the next cursor * @return */ public long getNextCursor() { return nextCursor; } }