MediaV1Service class abstract

Constructors

MediaV1Service({required String instance, required ClientContext context})
Returns the new instance of MediaV1Service.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

lookupMedia({required String mediaId}) Future<MastodonResponse<MediaAttachment>>
Get a media attachment, before it is attached to a status and posted, but after it is accepted for processing.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
updateMedia({required String mediaId, File? thumbnail, String? description, MediaFocalPoints? focus}) Future<MastodonResponse<MediaAttachment>>
Update a MediaAttachment’s parameters, before it is attached to a status and posted.
uploadMedia({required File file, File? thumbnail, String? description, MediaFocalPoints? focus}) Future<MastodonResponse<MediaAttachment>>
Creates an attachment to be used with a new status.

Operators

operator ==(Object other) bool
The equality operator.
inherited