com.twitter.processing

object User

[source: com/twitter/processing/User.scala]

object User
extends JsonSugar
Provides methods for unmarshalling a User from Json
Value Summary
val parser : com.google.gson.JsonParser
One Json parser to use. Note: this makes it not thread safe.
Method Summary
def fromJson (json : java.lang.String) : User
Get a User object from the given string. Note that we don't return options here, as we assume that basic verification is done by the Status object
def fromJson (rootElem : com.google.gson.JsonObject) : User
Get a geo object from the given Json object. Note that we don't return options here, as we assume that basic verification is done by the Status object
Methods inherited from JsonSugar
ss, sb, sl, si
Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Value Details
val parser : com.google.gson.JsonParser
One Json parser to use. Note: this makes it not thread safe.

Method Details
def fromJson(json : java.lang.String) : User
Get a User object from the given string. Note that we don't return options here, as we assume that basic verification is done by the Status object

def fromJson(rootElem : com.google.gson.JsonObject) : User
Get a geo object from the given Json object. Note that we don't return options here, as we assume that basic verification is done by the Status object


processing library Tweet Stream by Mark McBride. (c) 2009