C# Class DBPOLLDemo.Models.responseModel

Inheritance: System.Web.UI.Page
显示文件 Open project: Marknel/dbPOLL Class Usage Examples

Public Properties

Property Type Description
answerid int
createdat System.DateTime
feedback String
modifiedat System.DateTime
responseid int
sessionid int
userid int

Public Methods

Method Description
countResponse ( int answerid ) : int
createMCQResponse ( int userid, int answerid, int sessionid ) : void
createRankingResponse ( int userid, int answerid, int sessionid, int preferencenumber ) : void
createShortAnswerResponse ( String feedback, int userid, int sessionid, int questionid ) : void
getMaxResponseID ( ) : int
getRankingAnswerIds ( int sessionid, int userid, int questionid ) : List
getResponseId ( int sessionid, int userid, String feedback ) : int
responseModel ( ) : System
responseModel ( int responseid, String feedback, System.DateTime createdat, System.DateTime modifiedat, int userid, int answerid ) : System
updateMCQResponse ( int responseid, int answerid ) : void
updateRankingResponse ( int responseid, int answerid, int preferencenumber ) : void
updateShortAnswerResponse ( int responseid, String feedback ) : void

Method Details

countResponse() public method

public countResponse ( int answerid ) : int
answerid int
return int

createMCQResponse() public method

public createMCQResponse ( int userid, int answerid, int sessionid ) : void
userid int
answerid int
sessionid int
return void

createRankingResponse() public method

public createRankingResponse ( int userid, int answerid, int sessionid, int preferencenumber ) : void
userid int
answerid int
sessionid int
preferencenumber int
return void

createShortAnswerResponse() public method

public createShortAnswerResponse ( String feedback, int userid, int sessionid, int questionid ) : void
feedback String
userid int
sessionid int
questionid int
return void

getMaxResponseID() public method

public getMaxResponseID ( ) : int
return int

getRankingAnswerIds() public method

public getRankingAnswerIds ( int sessionid, int userid, int questionid ) : List
sessionid int
userid int
questionid int
return List

getResponseId() public method

public getResponseId ( int sessionid, int userid, String feedback ) : int
sessionid int
userid int
feedback String
return int

responseModel() public method

public responseModel ( ) : System
return System

responseModel() public method

public responseModel ( int responseid, String feedback, System.DateTime createdat, System.DateTime modifiedat, int userid, int answerid ) : System
responseid int
feedback String
createdat System.DateTime
modifiedat System.DateTime
userid int
answerid int
return System

updateMCQResponse() public method

public updateMCQResponse ( int responseid, int answerid ) : void
responseid int
answerid int
return void

updateRankingResponse() public method

public updateRankingResponse ( int responseid, int answerid, int preferencenumber ) : void
responseid int
answerid int
preferencenumber int
return void

updateShortAnswerResponse() public method

public updateShortAnswerResponse ( int responseid, String feedback ) : void
responseid int
feedback String
return void

Property Details

answerid public_oe property

public int answerid
return int

createdat public_oe property

public DateTime,System createdat
return System.DateTime

feedback public_oe property

public String feedback
return String

modifiedat public_oe property

public DateTime,System modifiedat
return System.DateTime

responseid public_oe property

public int responseid
return int

sessionid public_oe property

public int sessionid
return int

userid public_oe property

public int userid
return int