Poll Class

Namespace:
Weavy.Core.Models
Assembly:
Weavy.Core.dll

A multiple choice poll.

public class Poll
Inheritance:
System.Object → Poll

Constructors

Poll()

Properties

HasVoted Gets a value indicating whether the current user has voted in this poll.
Id Gets the id of the poll.
OptionIds Gets the ids of the poll options (if any).
Options Gets the options for the poll.
VoteCount Gets the total number of votes in this poll.

Extension Methods

IsNullOrDefault(T) 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.
SerializeToJson(Object, Nullable, JsonSerializerSettings) Serializes an object, or graph of connected objects, to a json string.
IsValid(Object) Determines whether the specified object is valid by evaluating each ValidationAttribute instance that is attached to the object type.