Exemple #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());
 }
Exemple #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());
 }
Exemple #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());
 }