use of com.github.dedis.popstellar.model.objects.WitnessMessage in project popstellar by dedis.
the class ElectionHandler method electionSetupWitnessMessage.
public static WitnessMessage electionSetupWitnessMessage(MessageID messageId, Election election) {
WitnessMessage message = new WitnessMessage(messageId);
message.setTitle("New Election Setup");
message.setDescription("Name : " + election.getName() + "\n" + "Election ID : " + election.getId() + "\n" + "Question : " + election.getElectionQuestions().get(0).getQuestion() + "\n" + "Message ID : " + messageId);
return message;
}
use of com.github.dedis.popstellar.model.objects.WitnessMessage in project popstellar by dedis.
the class LaoHandler method updateLaoNameWitnessMessage.
public static WitnessMessage updateLaoNameWitnessMessage(MessageID messageId, UpdateLao updateLao, Lao lao) {
WitnessMessage message = new WitnessMessage(messageId);
message.setTitle("Update Lao Name ");
message.setDescription("Old Name : " + lao.getName() + "\n" + "New Name : " + updateLao.getName() + "\n" + "Message ID : " + messageId);
return message;
}
use of com.github.dedis.popstellar.model.objects.WitnessMessage in project popstellar by dedis.
the class RollCallHandler method openRollCallWitnessMessage.
public static WitnessMessage openRollCallWitnessMessage(MessageID messageId, RollCall rollCall) {
WitnessMessage message = new WitnessMessage(messageId);
message.setTitle("A Roll Call was opened");
message.setDescription(ROLL_CALL_NAME + rollCall.getName() + "\n" + "Updated ID : " + rollCall.getId() + "\n" + MESSAGE_ID + messageId);
return message;
}
use of com.github.dedis.popstellar.model.objects.WitnessMessage in project popstellar by dedis.
the class RollCallHandler method closeRollCallWitnessMessage.
public static WitnessMessage closeRollCallWitnessMessage(MessageID messageId, RollCall rollCall) {
WitnessMessage message = new WitnessMessage(messageId);
message.setTitle("A Roll Call was closed");
message.setDescription(ROLL_CALL_NAME + rollCall.getName() + "\n" + "Updated ID : " + rollCall.getId() + "\n" + MESSAGE_ID + messageId);
return message;
}
use of com.github.dedis.popstellar.model.objects.WitnessMessage in project popstellar by dedis.
the class RollCallHandler method createRollCallWitnessMessage.
public static WitnessMessage createRollCallWitnessMessage(MessageID messageId, RollCall rollCall) {
WitnessMessage message = new WitnessMessage(messageId);
message.setTitle("New Roll Call was created");
message.setDescription(ROLL_CALL_NAME + rollCall.getName() + "\n" + "Roll Call ID : " + rollCall.getId() + "\n" + "Location : " + rollCall.getLocation() + "\n" + MESSAGE_ID + messageId);
return message;
}
Aggregations