Examples of EnqueteQuestion


Examples of in.partake.model.dto.auxiliary.EnqueteQuestion

                    array = new ObjectMapper().readValue(options[i], ArrayNode.class);
                for (int j = 0; j < array.size(); ++j)
                    optionValues.add(array.get(j).asText());
   
                UUID enqueteId = Util.isUUID(ids[i]) ? UUID.fromString(ids[i]) : UUID.randomUUID();
                EnqueteQuestion question = new EnqueteQuestion(
                        enqueteId, questions[i], EnqueteAnswerType.safeValueOf(types[i]), optionValues);
                enquetes.add(question);
            }
        } catch (JsonParseException e) {
            throw new IllegalArgumentException(e);
View Full Code Here

Examples of in.partake.model.dto.auxiliary.EnqueteQuestion

        {
            JsonNode ar = json.get("enquetes");
            if (ar != null) {
                this.enquetes = new ArrayList<EnqueteQuestion>();
                for (int i = 0; i < ar.size(); ++i)
                    enquetes.add(new EnqueteQuestion(ar.get(i)));
            }
        }

        if (json.has("createdAt"))
            this.createdAt = new DateTime(json.get("createdAt").asLong());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.