Show / Hide Table of Contents

Class PollViewModel

Inheritance
object
PollViewModel
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.CmsKit.Pro.Web.Pages.Public.Shared.Components.Poll
Assembly: Volo.CmsKit.Pro.Common.Web.dll
Syntax
public class PollViewModel

Constructors

PollViewModel()

Declaration
public PollViewModel()

Properties

AllowMultipleVote

Declaration
public bool AllowMultipleVote { get; set; }
Property Value
Type Description
bool

Code

Declaration
public string Code { get; set; }
Property Value
Type Description
string

CreationTime

Declaration
public DateTime CreationTime { get; set; }
Property Value
Type Description
DateTime

EndDate

Declaration
public DateTime? EndDate { get; set; }
Property Value
Type Description
DateTime?

Id

Declaration
public Guid? Id { get; set; }
Property Value
Type Description
Guid?

IsOutdated

Declaration
public bool IsOutdated { get; }
Property Value
Type Description
bool

IsVoted

Declaration
public bool IsVoted { get; set; }
Property Value
Type Description
bool

LoginUrl

Declaration
public string LoginUrl { get; set; }
Property Value
Type Description
string

Name

Declaration
public string Name { get; set; }
Property Value
Type Description
string

OptionIds

Declaration
public List<Guid> OptionIds { get; set; }
Property Value
Type Description
List<Guid>

PollResultDetails

Declaration
public List<PollResultDto> PollResultDetails { get; set; }
Property Value
Type Description
List<PollResultDto>

PollVoteCount

Declaration
public int PollVoteCount { get; set; }
Property Value
Type Description
int

Question

Declaration
[Required]
[Display(Name = "Question")]
public string Question { get; set; }
Property Value
Type Description
string

ResultShowingEndDate

Declaration
public DateTime? ResultShowingEndDate { get; set; }
Property Value
Type Description
DateTime?

ShowHoursLeft

Declaration
public bool ShowHoursLeft { get; set; }
Property Value
Type Description
bool

ShowResultWithoutGivingVote

Declaration
public bool ShowResultWithoutGivingVote { get; set; }
Property Value
Type Description
bool

ShowVoteCount

Declaration
public bool ShowVoteCount { get; set; }
Property Value
Type Description
bool

Texts

Declaration
public List<string> Texts { get; set; }
Property Value
Type Description
List<string>

TimeLeft

Declaration
public TimeSpan? TimeLeft { get; }
Property Value
Type Description
TimeSpan?

VoteCount

Declaration
public int VoteCount { get; set; }
Property Value
Type Description
int

WidgetName

Declaration
public string WidgetName { get; set; }
Property Value
Type Description
string

Methods

GetTimeLeft()

Declaration
public TimeSpan? GetTimeLeft()
Returns
Type Description
TimeSpan?

GetTimeLeftAsText(IHtmlLocalizer)

Declaration
public string GetTimeLeftAsText(IHtmlLocalizer l)
Parameters
Type Name Description
IHtmlLocalizer l
Returns
Type Description
string

GetVoteCountText(IHtmlLocalizer)

Declaration
public string GetVoteCountText(IHtmlLocalizer l)
Parameters
Type Name Description
IHtmlLocalizer l
Returns
Type Description
string

Extension Methods

AbpObjectExtensions.As<T>(object)
AbpObjectExtensions.To<T>(object)
LockExtensions.Locking(object, Action)
LockExtensions.Locking<TResult>(object, Func<TResult>)
AbpObjectExtensions.If<T>(T, bool, Action<T>)
AbpObjectExtensions.If<T>(T, bool, Func<T, T>)
AbpObjectExtensions.IsIn<T>(T, IEnumerable<T>)
AbpObjectExtensions.IsIn<T>(T, params T[])
AbpQueryableExtensions.OrderByIf<T, TQueryable>(TQueryable, bool, string)
AbpQueryableExtensions.PageBy<T, TQueryable>(TQueryable, int, int)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, bool>>)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, int, bool>>)
AbpOpenIddictQueryableExtensions.SkipIf<T, TQueryable>(TQueryable, bool, int?)
AbpOpenIddictQueryableExtensions.TakeIf<T, TQueryable>(TQueryable, bool, int?)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
In this article
Back to top Powered by ABP.IO Platform