Show / Hide Table of Contents

Class Poll

Inheritance
object
Entity
Entity<Guid>
BasicAggregateRoot<Guid>
AggregateRoot<Guid>
CreationAuditedAggregateRoot<Guid>
AuditedAggregateRoot<Guid>
FullAuditedAggregateRoot<Guid>
Poll
Implements
IAggregateRoot<Guid>
IEntity<Guid>
IAggregateRoot
IEntity
IGeneratesDomainEvents
IHasExtraProperties
IHasConcurrencyStamp
IFullAuditedObject
IAuditedObject
ICreationAuditedObject
IHasCreationTime
IMayHaveCreator
IModificationAuditedObject
IHasModificationTime
IDeletionAuditedObject
IHasDeletionTime
ISoftDelete
IMultiTenant
Inherited Members
FullAuditedAggregateRoot<Guid>.IsDeleted
FullAuditedAggregateRoot<Guid>.DeleterId
FullAuditedAggregateRoot<Guid>.DeletionTime
AuditedAggregateRoot<Guid>.LastModificationTime
AuditedAggregateRoot<Guid>.LastModifierId
CreationAuditedAggregateRoot<Guid>.CreationTime
CreationAuditedAggregateRoot<Guid>.CreatorId
AggregateRoot<Guid>.Validate(ValidationContext)
AggregateRoot<Guid>.ExtraProperties
AggregateRoot<Guid>.ConcurrencyStamp
BasicAggregateRoot<Guid>.GetLocalEvents()
BasicAggregateRoot<Guid>.GetDistributedEvents()
BasicAggregateRoot<Guid>.ClearLocalEvents()
BasicAggregateRoot<Guid>.ClearDistributedEvents()
BasicAggregateRoot<Guid>.AddLocalEvent(object)
BasicAggregateRoot<Guid>.AddDistributedEvent(object)
Entity<Guid>.GetKeys()
Entity<Guid>.ToString()
Entity<Guid>.Id
Entity.EntityEquals(IEntity)
object.GetType()
object.MemberwiseClone()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.CmsKit.Polls
Assembly: Volo.CmsKit.Pro.Domain.dll
Syntax
public class Poll : FullAuditedAggregateRoot<Guid>, IAggregateRoot<Guid>, IEntity<Guid>, IAggregateRoot, IEntity, IGeneratesDomainEvents, IHasExtraProperties, IHasConcurrencyStamp, IFullAuditedObject, IAuditedObject, ICreationAuditedObject, IHasCreationTime, IMayHaveCreator, IModificationAuditedObject, IHasModificationTime, IDeletionAuditedObject, IHasDeletionTime, ISoftDelete, IMultiTenant

Constructors

Poll()

Declaration
protected Poll()

Poll(Guid, string, string, string, string, DateTime, bool, bool, bool, bool, DateTime?, DateTime?, Guid?)

Declaration
public Poll(Guid id, string question, string code, string widget, string name, DateTime startDate, bool allowMultipleVote = false, bool showVoteCount = true, bool showResultWithoutGivingVote = true, bool showHoursLeft = true, DateTime? endDate = null, DateTime? resultShowingEndDate = null, Guid? tenantId = null)
Parameters
Type Name Description
Guid id
string question
string code
string widget
string name
DateTime startDate
bool allowMultipleVote
bool showVoteCount
bool showResultWithoutGivingVote
bool showHoursLeft
DateTime? endDate
DateTime? resultShowingEndDate
Guid? tenantId

Properties

AllowMultipleVote

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

Code

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

EndDate

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

Name

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

PollOptions

Declaration
public virtual Collection<PollOption> PollOptions { get; protected set; }
Property Value
Type Description
Collection<PollOption>

Question

Declaration
public virtual string Question { get; protected set; }
Property Value
Type Description
string

ResultShowingEndDate

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

ShowHoursLeft

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

ShowResultWithoutGivingVote

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

ShowVoteCount

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

StartDate

Declaration
public virtual DateTime StartDate { get; protected set; }
Property Value
Type Description
DateTime

TenantId

Declaration
public virtual Guid? TenantId { get; protected set; }
Property Value
Type Description
Guid?

VoteCount

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

Widget

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

Methods

AddPollOption(Guid, string, int, Guid?)

Declaration
public virtual PollOption AddPollOption(Guid optionId, string text, int order, Guid? tenantId)
Parameters
Type Name Description
Guid optionId
string text
int order
Guid? tenantId
Returns
Type Description
PollOption

Decrease(int)

Declaration
public virtual void Decrease(int voteCount)
Parameters
Type Name Description
int voteCount

Increase()

Declaration
public virtual void Increase()

OrderPollOptions()

Declaration
public virtual void OrderPollOptions()

RemovePollOption(Guid)

Declaration
public virtual void RemovePollOption(Guid optionId)
Parameters
Type Name Description
Guid optionId

SetCode(string)

Declaration
public virtual void SetCode(string code)
Parameters
Type Name Description
string code

SetDates(DateTime, DateTime?, DateTime?)

Declaration
public virtual void SetDates(DateTime startDate, DateTime? endDate = null, DateTime? resultShowingEndDate = null)
Parameters
Type Name Description
DateTime startDate
DateTime? endDate
DateTime? resultShowingEndDate

SetQuestion(string)

Declaration
public virtual void SetQuestion(string question)
Parameters
Type Name Description
string question

UpdatePollOption(Guid, string, int, Guid?)

Declaration
public virtual void UpdatePollOption(Guid optionId, string text, int order, Guid? tenantId)
Parameters
Type Name Description
Guid optionId
string text
int order
Guid? tenantId

Implements

IAggregateRoot<TKey>
IEntity<TKey>
IAggregateRoot
IEntity
IGeneratesDomainEvents
IHasExtraProperties
IHasConcurrencyStamp
IFullAuditedObject
IAuditedObject
ICreationAuditedObject
IHasCreationTime
IMayHaveCreator
IModificationAuditedObject
IHasModificationTime
IDeletionAuditedObject
IHasDeletionTime
ISoftDelete
IMultiTenant

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