Class PollViewModel
Inheritance
PollViewModel
Assembly: Volo.CmsKit.Pro.Common.Web.dll
Syntax
public class PollViewModel
Constructors
PollViewModel()
Declaration
Properties
AllowMultipleVote
Declaration
public bool AllowMultipleVote { get; set; }
Property Value
Code
Declaration
public string Code { get; set; }
Property Value
CreationTime
Declaration
public DateTime CreationTime { get; set; }
Property Value
EndDate
Declaration
public DateTime? EndDate { get; set; }
Property Value
Id
Declaration
public Guid? Id { get; set; }
Property Value
IsOutdated
Declaration
public bool IsOutdated { get; }
Property Value
IsVoted
Declaration
public bool IsVoted { get; set; }
Property Value
LoginUrl
Declaration
public string LoginUrl { get; set; }
Property Value
Name
Declaration
public string Name { get; set; }
Property Value
OptionIds
Declaration
public List<Guid> OptionIds { get; set; }
Property Value
PollResultDetails
Declaration
public List<PollResultDto> PollResultDetails { get; set; }
Property Value
PollVoteCount
Declaration
public int PollVoteCount { get; set; }
Property Value
Question
Declaration
[Required]
[Display(Name = "Question")]
public string Question { get; set; }
Property Value
ResultShowingEndDate
Declaration
public DateTime? ResultShowingEndDate { get; set; }
Property Value
ShowHoursLeft
Declaration
public bool ShowHoursLeft { get; set; }
Property Value
ShowResultWithoutGivingVote
Declaration
public bool ShowResultWithoutGivingVote { get; set; }
Property Value
ShowVoteCount
Declaration
public bool ShowVoteCount { get; set; }
Property Value
Texts
Declaration
public List<string> Texts { get; set; }
Property Value
TimeLeft
Declaration
public TimeSpan? TimeLeft { get; }
Property Value
VoteCount
Declaration
public int VoteCount { get; set; }
Property Value
WidgetName
Declaration
public string WidgetName { get; set; }
Property Value
Methods
GetTimeLeft()
Declaration
public TimeSpan? GetTimeLeft()
Returns
GetTimeLeftAsText(IHtmlLocalizer)
Declaration
public string GetTimeLeftAsText(IHtmlLocalizer l)
Parameters
Returns
GetVoteCountText(IHtmlLocalizer)
Declaration
public string GetVoteCountText(IHtmlLocalizer l)
Parameters
Returns
Extension Methods