MastodonStatusEditRequest class
Parameters for a status edit request.
Corresponds to the request body for PUT /api/v1/statuses/:id.
Constructors
-
MastodonStatusEditRequest({String? status, String? spoilerText, bool? sensitive, String? language, List<
String> ? mediaIds, List<MastodonMediaAttributeRequest> ? mediaAttributes, MastodonPollEditRequest? poll, String? quoteApprovalPolicy}) -
Creates parameters for a status edit request.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- language → String?
-
Posting language code (ISO 639-1 format).
final
-
mediaAttributes
→ List<
MastodonMediaAttributeRequest> ? -
Attributes for each media (description and focal point).
final
-
mediaIds
→ List<
String> ? -
List of attached media IDs.
final
- poll → MastodonPollEditRequest?
-
Poll parameters.
final
- quoteApprovalPolicy → String?
-
Quote approval policy (
public/followers/nobody).final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sensitive → bool?
-
Whether to mark as sensitive content.
final
- spoilerText → String?
-
Content warning (CW) text.
final
- status → String?
-
Body text of the status.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Returns a JSON map for the request body.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited