Search in sources :

Example 16 with Answer

use of life.genny.qwanda.Answer in project rulesservice by genny-project.

the class QRules method publishData.

public void publishData(final List<Answer> answerList) {
    Answer[] answerArray = answerList.toArray(new Answer[answerList.size()]);
    QDataAnswerMessage msg = new QDataAnswerMessage(answerArray);
    msg.setToken(getToken());
    publish("data", JsonUtils.toJson(msg));
}
Also used : Answer(life.genny.qwanda.Answer) QDataAnswerMessage(life.genny.qwanda.message.QDataAnswerMessage)

Aggregations

Answer (life.genny.qwanda.Answer)16 BaseEntity (life.genny.qwanda.entity.BaseEntity)8 ArrayList (java.util.ArrayList)6 HashMap (java.util.HashMap)5 LinkedHashMap (java.util.LinkedHashMap)5 IOException (java.io.IOException)4 JsonObject (io.vertx.core.json.JsonObject)2 AttributeMoney (life.genny.qwanda.attribute.AttributeMoney)2 EntityAttribute (life.genny.qwanda.attribute.EntityAttribute)2 BadDataException (life.genny.qwanda.exception.BadDataException)2 QDataAnswerMessage (life.genny.qwanda.message.QDataAnswerMessage)2 Money (org.javamoney.moneta.Money)2 JsonArray (io.vertx.core.json.JsonArray)1 UnsupportedEncodingException (java.io.UnsupportedEncodingException)1 HashSet (java.util.HashSet)1 Map (java.util.Map)1 ExecutionException (java.util.concurrent.ExecutionException)1 GPS (life.genny.qwanda.GPS)1 Link (life.genny.qwanda.Link)1 AttributeBoolean (life.genny.qwanda.attribute.AttributeBoolean)1