Пример #1
0
  public static void printResponseEntities(final ListOfEntitiesBean entities) {

    List<EntityBean> entityList = entities.getListOfEntity();

    VzTLogger.i("Total Entities:  {}", String.valueOf(entities.getTotalResults()));

    for (EntityBean entityBean : entityList) {

      Fields fields = entityBean.getFields();

      List<Field> fieldList = fields.getListOfFields();

      String type = entityBean.getType();

      VzTLogger.i("Entity Type :  {}", type);

      for (Field fld : fieldList) {
        String fldName = fld.getName();
        if (!fldName.startsWith("user-")) {
          List<String> fldValues = fld.getListOfValues();
          for (String value : fldValues) {
            VzTLogger.i(fldName + "---> {}", value);
          }
        }
      }
    }
  }
Пример #2
0
  /**
   * @param anEntity
   * @return
   */
  public static String getResponseEntitiesAsListOfString(final ListOfEntitiesBean listOfEntities) {

    return listOfEntities.getListOfEntity().toString();
  }