PollOption Class
- Namespace:
- Weavy.Core.Models
- Assembly:
- Weavy.Core.dll
An individual option in a poll.
public class PollOption : ICloneable
- Inheritance:
- System.Object → PollOption
Constructors
Poll |
Initializes a new instance of the PollOption class. |
Properties
Created |
Gets or sets the time (UTC) the option was initially created. |
Created |
Gets or sets the id of the User that posted the Post. |
Has |
Gets a value indicating if the current user has voted for this option. |
Html | Gets or sets the option text as html. |
Id | Gets the option id. |
Poll | Gets the poll that the option is attached to. |
Text | Gets or sets the option text. |
Vote |
Get the total number of votes for this option. |
Voter |
Gets the ids of all users that voted for this option. |
Voters | Gets the voters, i.e. the people that voted for this option. |
Methods
Clone() | Creates a new object that is a copy of the current instance. |
To |
Extension Methods
Is |
Gets a value indicating if the specified value has the default value of the generic type. |
Serialize(Object) | Serializes an object, or graph of connected objects, to a byte array. |
Serialize |
Serializes an object, or graph of connected objects, to a json string. |
Is |
Determines whether the specified object is valid by evaluating each ValidationAttribute instance that is attached to the object type. |