Package fr.emn.nuitinfo.model

Examples of fr.emn.nuitinfo.model.Chasse


  }

  public static String createJSONChasse() {

    Chasse chasseTest;
    List<IEtape> etapes = new ArrayList<IEtape>();

    String[] reponse = new String[1];
    reponse[0] = "reponse";
    String[] indice = new String[1];
    indice[0] = "indice";
    Etape ietape1 = new Etape("enigme", reponse, "commentaires", indice, new Lieu(new CoordonneesGPS(45.0,45.0), "unLieu"));

    etapes.add(ietape1);
    Duree myDuree = new Duree(5, 5, 5);
    List<String> tags = new ArrayList<String>();
    tags.add("tag1");
    tags.add("tag2");
    tags.add("tag3");
    chasseTest = new Chasse("uneRegion", tags, etapes, myDuree, "unNom", "Unedescription");

    return (chasseTest.toString());

  }
View Full Code Here


  }

  @Override
  public void create(String t) {
    Gson gson = new Gson();
    Chasse chasse = gson.fromJson(t, Chasse.class);
    ofy().save().entity(chasse);
  }
View Full Code Here

//          "indice2" });
//      etapes.add(ietape3);
//      IDuree myDuree3 = new Duree(5, 5, 5);

      //chasses.add(new Chasse(etapes3, myDuree3, "unNom2", "Unedescription2"));
    chasses.add(new Chasse(region,tags,etapes, duree, nom, description));

//    }

    return chasses;
  }
View Full Code Here

TOP

Related Classes of fr.emn.nuitinfo.model.Chasse

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.