Added the configuration object that will contains all needed data for

voting booth initilization
android-scanner
Vladimir Eliezer Tokarev 2016-10-01 15:41:13 +03:00
parent 51ea368c01
commit c0ed5ea3fc
3 changed files with 60 additions and 0 deletions

View File

@ -0,0 +1,50 @@
syntax = "proto3";
package meerkat;
option java_package = "meerkat.protobuf";
// Message object which is number of bytes
message ListOfAnswers{
repeated bytes answers = 1;
}
// Message object which contains the type of the answers and their data in bytes
message UIAnswers {
int32 AnswersType = 1;
ListOfAnswers answers = 2;
}
// Message Question are bytes
message Question {
bytes question = 1;
}
// Message object which contains the question and its type
message UIQuestion{
int32 type = 1;
Question question = 2;
}
message BallotQuestionUIElement {
// Message object which contains all the potential answers for given question
UIAnswers answers = 1;
// Should those answers locations should be randomized before shown to the voter ?
bool RandomizeListOrder = 2;
// Message object which contains the question itself
UIQuestion question = 3;
}
// Enumeration that represents the available types of questions/answers that can be
enum ValueType {
TEXT_TYPE = 0;
AUDIO_TYPE = 1;
IMAGE_TYPE = 2;
}
// NOTE: the idea is next when UIQuestion/Answer is received i first check out its type then i convert it to given type.

View File

@ -6,6 +6,7 @@ import javafx.stage.Stage;
/**
* Created by Vladimir Eliezer Tokarev on 8/27/2016.
* The current voting-booth intialization process is next:
* Main calls to ChainBuilder which initilizes all the TwoWayNode's
*/
public class Main extends Application {

View File

@ -0,0 +1,9 @@
package meerkat.voting.gui;
/**
* Created by Vladimir Eliezer Tokarev on 10/1/2016.
* This object contains all the questions and configurations needed for the voting-booth-gui work
*/
public class VotingBoothConfiguration {
}