PollAttachmentModel class
Model Poll
- Inheritance
-
- Object
- AttachmentModel
- CustomAttachmentModel
- PollAttachmentModel
Constructors
-
PollAttachmentModel(Map<
String, dynamic> payload)
Properties
- accessKey → String?
-
Attachment access key.
no setterinherited
-
answerIds
→ List<
int> ? -
IDs of the answer options selected by the current user.
no setter
-
answers
→ List<
PollAttachmentAnswerModel> ? -
An array of objects that contain information about answer options.
no setter
- attachType → String
-
Attachment type.
finalinherited
-
The ID of the survey author.
no setter
- backgroundAngle → int?
-
(for type = gradient) the angle of the gradient along the X-axis.
no setter
- backgroundColor → String?
-
The HEX code of the replacement color (without #).
no setter
- backgroundHeight → int?
-
(for type = tile) the height of the pattern tile.
no setter
- backgroundId → int?
-
background ID.
no setter
-
backgroundImages
→ List<
Map< ?String, dynamic> > -
(for type = tile) the image of the pattern tile.
no setter
-
backgroundPoints
→ List<
(int, String)> ? -
(for type = gradient) gradient points.
no setter
- backgroundType → String?
-
the type of background. Possible values:
gradient
,tile
.no setter - backgroundWidth → int?
-
(for type = tile) the width of the pattern tile.
no setter
- createdAt → int?
-
Date of creation in Unixtime format.
no setter
- endDate → int?
-
The date when the survey was completed in Unixtime. 0 if the survey is open-ended.
no setter
-
friends
→ List<
int> ? -
The IDs of the 3 friends who voted in the poll.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → int
-
Attachment ID.
no setterinherited
- isAnonymous → bool?
-
Whether the survey is anonymous.
no setter
- isBoard → bool?
-
Whether the survey is attached to the discussion.
no setter
- isCanEdit → bool?
-
Is it possible to edit the survey?
no setter
- isCanReport → bool?
-
Is it possible to complain about the survey.
no setter
-
Is it possible to share the survey?
no setter
- isCanVote → bool?
-
Is it possible to vote in the poll.
no setter
- isClosed → bool?
-
Whether the survey is completed.
no setter
- isMultiple → bool?
-
Does the survey allow for multiple answer options.
no setter
- ownerId → int
-
Attachment owner identifier.
no setterinherited
-
payload
→ Map<
String, dynamic> -
Payload.
finalinherited
- photo → PhotoAttachmentModel?
-
The photo is the background of the survey snippet.
no setter
- question → String?
-
Question text.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- votesCount → int?
-
The number of votes.
no setter
Methods
-
checkBoolInProperty(
String key) → bool? -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited