Ejemplo n.º 1
0
 /**
  * Create a new Int64 based on the given Message. Any missing values will be set to their
  * defaults.
  *
  * @param m The Message to parse.
  * @return A Int64 message based on the given Message.
  */
 public static Int64 fromMessage(Message m) {
   // get it from the JSON object
   return Int64.fromJsonObject(m.toJsonObject());
 }
Ejemplo n.º 2
0
 /**
  * Create a new Point32 based on the given Message. Any missing values will be set to their
  * defaults.
  *
  * @param m The Message to parse.
  * @return A Point32 message based on the given Message.
  */
 public static Point32 fromMessage(Message m) {
   // get it from the JSON object
   return Point32.fromJsonObject(m.toJsonObject());
 }
Ejemplo n.º 3
0
 /**
  * Create a new Twist based on the given Message. Any missing values will be set to their
  * defaults.
  *
  * @param m The Message to parse.
  * @return A Twist message based on the given Message.
  */
 public static Twist fromMessage(Message m) {
   // get it from the JSON object
   return Twist.fromJsonObject(m.toJsonObject());
 }