Package org.javlo.component.web2
Class QuizzPartyContext
- java.lang.Object
-
- org.javlo.component.web2.QuizzPartyContext
-
public class QuizzPartyContext extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
QuizzPartyContext.Response
static class
QuizzPartyContext.Result
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkPlayers()
int
getCheck()
static QuizzPartyContext
getInstance(javax.servlet.http.HttpSession session)
static QuizzPartyContext
getInstance(javax.servlet.http.HttpSession session, String name)
String
getMasterSessionId()
int
getNA()
String
getName()
int
getNO()
int
getParticipant()
int
getQuestion()
QuizzPartyContext.Result
getResult()
int
getYES()
boolean
isReset()
void
nextQuestion()
void
playerLife(javax.servlet.http.HttpSession session)
void
previousQuestion()
void
reset(javax.servlet.http.HttpSession session)
void
setCheck(int check)
void
setMasterSessionId(String masterSessionId)
void
setName(String name)
void
setParticipant(int participant)
void
setReset(boolean reset)
void
vote(int vote, String sessionId)
-
-
-
Field Detail
-
YES
public static final int YES
- See Also:
- Constant Field Values
-
NO
public static final int NO
- See Also:
- Constant Field Values
-
NA
public static final int NA
- See Also:
- Constant Field Values
-
HASH_SIZE
public static final int HASH_SIZE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static final QuizzPartyContext getInstance(javax.servlet.http.HttpSession session) throws Exception
- Throws:
Exception
-
getInstance
public static final QuizzPartyContext getInstance(javax.servlet.http.HttpSession session, String name) throws Exception
- Throws:
Exception
-
getName
public String getName()
-
setName
public void setName(String name)
-
getMasterSessionId
public String getMasterSessionId()
-
setMasterSessionId
public void setMasterSessionId(String masterSessionId)
-
getParticipant
public int getParticipant()
-
setParticipant
public void setParticipant(int participant)
-
getQuestion
public int getQuestion()
-
nextQuestion
public void nextQuestion()
-
previousQuestion
public void previousQuestion()
-
getCheck
public int getCheck()
-
setCheck
public void setCheck(int check)
-
vote
public void vote(int vote, String sessionId)
-
getYES
public int getYES()
-
getNO
public int getNO()
-
getNA
public int getNA()
-
getResult
public QuizzPartyContext.Result getResult()
-
reset
public void reset(javax.servlet.http.HttpSession session)
-
isReset
public boolean isReset()
-
setReset
public void setReset(boolean reset)
-
checkPlayers
public void checkPlayers()
-
playerLife
public void playerLife(javax.servlet.http.HttpSession session)
-
-