C# Class DBPOLLDemo.Models.pollModel

Inheritance: System.Web.UI.Page
Show file Open project: Marknel/dbPOLL Class Usage Examples

Public Properties

Property Type Description
createdAt System.DateTime
createdby int
createdcreator1 String
createdmaster String
currentquestion int
expiresat DateTime?
latitude decimal
longitude decimal
modifiedat System.DateTime
pollid int
pollname String
sessionName String
sessionParticipantList bool
sessionid int
sessionname String
syncType String
time System.DateTime
total int

Public Methods

Method Description
assignPoll ( int pollid, int pollUserId ) : void

Call to assign a poll to a particualar user.

createPoll ( String pollName, int createdBy, Nullable expiresat ) : void
createSession ( int pollid, String name, decimal latitude, decimal longitude, System.DateTime time ) : void
deletePoll ( ) : void
deleteSession ( ) : void
displayAllPolls ( ) : List
displayAssignedSessions ( int userid ) : List
displayPollSessions ( ) : List

Returns all polls in the database which have been created by the searching user.

displayPolls ( ) : List
displayPolls ( System.DateTime start, System.DateTime end ) : List

Returns polls between two dates.

displayPolls ( int pollid ) : pollModel

Returns poll data of poll with given id.

displayPollsThatContainSessions ( ) : List
displaySessionDetails ( int sessionid ) : List
editSession ( String sessionname, int sessionid, decimal latitude, decimal longitude, System.DateTime parsedDate ) : void
getMaxAssignID ( ) : int
getMaxID ( ) : int
getMaxSessionID ( ) : int
isOpen ( int sessionid ) : System.Boolean
pollModel ( ) : System
pollModel ( int pollid ) : System
pollModel ( int pollid, String name ) : System
pollModel ( int pollId, String pollName, System.DateTime createdAt ) : System
pollModel ( int pollid, String pollName, String sessionName, decimal longitude, decimal latitude, int createdBy, Nullable expiresat, System.DateTime createdAt, Nullable modifiedat ) : System
pollModel ( int pollid, String pollName, decimal longitude, decimal latitude, int createdBy, System.DateTime createdAt ) : System
pollModel ( int sessionid, int y ) : System
pollModel ( int pollId, int sessionId, String pollName, String sessionName, decimal longitude, decimal latitude, System.DateTime time ) : System
unassignPoll ( int pollid, int userid ) : void
updatePoll ( int pollid, String pollName ) : void

Method Details

assignPoll() public method

Call to assign a poll to a particualar user.
public assignPoll ( int pollid, int pollUserId ) : void
pollid int
pollUserId int
return void

createPoll() public method

public createPoll ( String pollName, int createdBy, Nullable expiresat ) : void
pollName String
createdBy int
expiresat Nullable
return void

createSession() public method

public createSession ( int pollid, String name, decimal latitude, decimal longitude, System.DateTime time ) : void
pollid int
name String
latitude decimal
longitude decimal
time System.DateTime
return void

deletePoll() public method

public deletePoll ( ) : void
return void

deleteSession() public method

public deleteSession ( ) : void
return void

displayAllPolls() public method

public displayAllPolls ( ) : List
return List

displayAssignedSessions() public method

public displayAssignedSessions ( int userid ) : List
userid int
return List

displayPollSessions() public method

Returns all polls in the database which have been created by the searching user.
public displayPollSessions ( ) : List
return List

displayPolls() public method

public displayPolls ( ) : List
return List

displayPolls() public method

Returns polls between two dates.
public displayPolls ( System.DateTime start, System.DateTime end ) : List
start System.DateTime Date to search from
end System.DateTime Date to finish search at
return List

displayPolls() public method

Returns poll data of poll with given id.
public displayPolls ( int pollid ) : pollModel
pollid int Id of the poll
return pollModel

displayPollsThatContainSessions() public method

public displayPollsThatContainSessions ( ) : List
return List

displaySessionDetails() public method

public displaySessionDetails ( int sessionid ) : List
sessionid int
return List

editSession() public method

public editSession ( String sessionname, int sessionid, decimal latitude, decimal longitude, System.DateTime parsedDate ) : void
sessionname String
sessionid int
latitude decimal
longitude decimal
parsedDate System.DateTime
return void

getMaxAssignID() public method

public getMaxAssignID ( ) : int
return int

getMaxID() public method

public getMaxID ( ) : int
return int

getMaxSessionID() public method

public getMaxSessionID ( ) : int
return int

isOpen() public method

public isOpen ( int sessionid ) : System.Boolean
sessionid int
return System.Boolean

pollModel() public method

public pollModel ( ) : System
return System

pollModel() public method

public pollModel ( int pollid ) : System
pollid int
return System

pollModel() public method

public pollModel ( int pollid, String name ) : System
pollid int
name String
return System

pollModel() public method

public pollModel ( int pollId, String pollName, System.DateTime createdAt ) : System
pollId int
pollName String
createdAt System.DateTime
return System

pollModel() public method

public pollModel ( int pollid, String pollName, String sessionName, decimal longitude, decimal latitude, int createdBy, Nullable expiresat, System.DateTime createdAt, Nullable modifiedat ) : System
pollid int
pollName String
sessionName String
longitude decimal
latitude decimal
createdBy int
expiresat Nullable
createdAt System.DateTime
modifiedat Nullable
return System

pollModel() public method

public pollModel ( int pollid, String pollName, decimal longitude, decimal latitude, int createdBy, System.DateTime createdAt ) : System
pollid int
pollName String
longitude decimal
latitude decimal
createdBy int
createdAt System.DateTime
return System

pollModel() public method

public pollModel ( int sessionid, int y ) : System
sessionid int
y int
return System

pollModel() public method

public pollModel ( int pollId, int sessionId, String pollName, String sessionName, decimal longitude, decimal latitude, System.DateTime time ) : System
pollId int
sessionId int
pollName String
sessionName String
longitude decimal
latitude decimal
time System.DateTime
return System

unassignPoll() public method

public unassignPoll ( int pollid, int userid ) : void
pollid int
userid int
return void

updatePoll() public method

public updatePoll ( int pollid, String pollName ) : void
pollid int
pollName String
return void

Property Details

createdAt public property

public DateTime,System createdAt
return System.DateTime

createdby public property

public int createdby
return int

createdcreator1 public property

public String createdcreator1
return String

createdmaster public property

public String createdmaster
return String

currentquestion public property

public int currentquestion
return int

expiresat public property

public DateTime? expiresat
return DateTime?

latitude public property

public decimal latitude
return decimal

longitude public property

public decimal longitude
return decimal

modifiedat public property

public DateTime,System modifiedat
return System.DateTime

pollid public property

public int pollid
return int

pollname public property

public String pollname
return String

sessionName public property

public String sessionName
return String

sessionParticipantList public property

public bool sessionParticipantList
return bool

sessionid public property

public int sessionid
return int

sessionname public property

public String sessionname
return String

syncType public property

public String syncType
return String

time public property

public DateTime,System time
return System.DateTime

total public property

public int total
return int