C# Class DBPOLLDemo.Controllers.SessionController

Inheritance: Controller
Afficher le fichier Open project: Marknel/dbPOLL

Méthodes publiques

Méthode Description
AnswerMultipleChoiceQuestion ( int selectedAnswer, int sessionid, int userid, int currentquestionid ) : void
AnswerRankingQuestion ( String selectedAnswer, int sessionid, int userid, int currentquestionid ) : void
AnswerShortAnswerQuestion ( String answer, int sessionid, int userid, int currentquestionid ) : void
ConfirmationPage ( int sessionid, int pollid ) : System.Web.Mvc.ActionResult
Create ( int pollID, String pollName ) : System.Web.Mvc.ActionResult
Delete ( int sessionid ) : System.Web.Mvc.ActionResult
Details ( int id ) : System.Web.Mvc.ActionResult
Edit ( String sessionname, int sessionid, int pollid, decimal longitude, decimal latitude, System.DateTime time ) : System.Web.Mvc.ActionResult
Index ( ) : System.Web.Mvc.ActionResult
StartAsyncSession ( int sessionid, int pollid ) : System.Web.Mvc.ActionResult
StartSyncSession ( int sessionid, int pollid ) : System.Web.Mvc.ActionResult
TwoDimensionalChart ( String chartParameter ) : System.Web.Mvc.ActionResult
ViewAvailableSession ( int userid ) : System.Web.Mvc.ActionResult
caniseethegraph ( ) : System.Boolean
isEmpty ( String answer ) : System.Boolean
isRedundant ( String answer ) : System.Boolean
setNextAnswer ( int currentQuestionId, int nextQuestionId, int sessionid, int userid ) : void

Private Methods

Méthode Description
Create ( int pollID, String pollName, String name, decimal latitude, decimal longitude, String time, String longitudeBox, String latitudeBox ) : System.Web.Mvc.ActionResult
Edit ( String sessionname, int sessionid, int pollid, decimal latitude, decimal longitude, String time, String longitudeBox, String latitudeBox ) : System.Web.Mvc.ActionResult
StartAsyncSession ( String button ) : System.Web.Mvc.ActionResult
StartSyncSession ( String load ) : System.Web.Mvc.ActionResult
buildPlainSelectList ( List answerList ) : void
buildSelectList ( List answerList, List selectedAnswer ) : void

Method Details

AnswerMultipleChoiceQuestion() public méthode

public AnswerMultipleChoiceQuestion ( int selectedAnswer, int sessionid, int userid, int currentquestionid ) : void
selectedAnswer int
sessionid int
userid int
currentquestionid int
Résultat void

AnswerRankingQuestion() public méthode

public AnswerRankingQuestion ( String selectedAnswer, int sessionid, int userid, int currentquestionid ) : void
selectedAnswer String
sessionid int
userid int
currentquestionid int
Résultat void

AnswerShortAnswerQuestion() public méthode

public AnswerShortAnswerQuestion ( String answer, int sessionid, int userid, int currentquestionid ) : void
answer String
sessionid int
userid int
currentquestionid int
Résultat void

ConfirmationPage() public méthode

public ConfirmationPage ( int sessionid, int pollid ) : System.Web.Mvc.ActionResult
sessionid int
pollid int
Résultat System.Web.Mvc.ActionResult

Create() public méthode

public Create ( int pollID, String pollName ) : System.Web.Mvc.ActionResult
pollID int
pollName String
Résultat System.Web.Mvc.ActionResult

Delete() public méthode

public Delete ( int sessionid ) : System.Web.Mvc.ActionResult
sessionid int
Résultat System.Web.Mvc.ActionResult

Details() public méthode

public Details ( int id ) : System.Web.Mvc.ActionResult
id int
Résultat System.Web.Mvc.ActionResult

Edit() public méthode

public Edit ( String sessionname, int sessionid, int pollid, decimal longitude, decimal latitude, System.DateTime time ) : System.Web.Mvc.ActionResult
sessionname String
sessionid int
pollid int
longitude decimal
latitude decimal
time System.DateTime
Résultat System.Web.Mvc.ActionResult

Index() public méthode

public Index ( ) : System.Web.Mvc.ActionResult
Résultat System.Web.Mvc.ActionResult

StartAsyncSession() public méthode

public StartAsyncSession ( int sessionid, int pollid ) : System.Web.Mvc.ActionResult
sessionid int
pollid int
Résultat System.Web.Mvc.ActionResult

StartSyncSession() public méthode

public StartSyncSession ( int sessionid, int pollid ) : System.Web.Mvc.ActionResult
sessionid int
pollid int
Résultat System.Web.Mvc.ActionResult

TwoDimensionalChart() public méthode

public TwoDimensionalChart ( String chartParameter ) : System.Web.Mvc.ActionResult
chartParameter String
Résultat System.Web.Mvc.ActionResult

ViewAvailableSession() public méthode

public ViewAvailableSession ( int userid ) : System.Web.Mvc.ActionResult
userid int
Résultat System.Web.Mvc.ActionResult

caniseethegraph() public méthode

public caniseethegraph ( ) : System.Boolean
Résultat System.Boolean

isEmpty() public méthode

public isEmpty ( String answer ) : System.Boolean
answer String
Résultat System.Boolean

isRedundant() public méthode

public isRedundant ( String answer ) : System.Boolean
answer String
Résultat System.Boolean

setNextAnswer() public méthode

public setNextAnswer ( int currentQuestionId, int nextQuestionId, int sessionid, int userid ) : void
currentQuestionId int
nextQuestionId int
sessionid int
userid int
Résultat void