Code example for JsonPrimitive

0
  public static void getAPILevel(final ForgeTask task) { 
    task.success(new JsonPrimitive(android.os.Build.VERSION.SDK_INT)); 
  } 
 
  public static void getVersionString(final ForgeTask task) { 
    task.success(new JsonPrimitive(android.os.Build.VERSION.RELEASE)); 
  } 
 
  public static void getDeviceName(final ForgeTask task) { 
    task.success(new JsonPrimitive(android.os.Build.MODEL)); 
  } 
}