MastodonProvider Class

Summary

Contains functionality related to Mastodon REST API
Assembly
Cake.Mastodon.dll
Namespace
Cake.Mastodon
Base Types
  • Object
graph BT Type-->Base0["Object"] Type["MastodonProvider"] class Type type-node

Syntax

public sealed class MastodonProvider

Attributes

Type Description
NullableContextAttribute
NullableAttribute

Constructors

Name Summary
MastodonProvider(string, string) Creates an object for sending toots to Mastodon using access-token. Get your authorization token by creating an app at Mastodon.

Methods

Name Value Summary
Toot(string, string, TootVisibility, CancellationToken) Task<TootResponse>
Sends a toot with the supplied text and returns the response from the Mastodon REST API along with status code and reason phrase.

Extension Methods

Name Value Summary
Dump<MastodonProvider>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<MastodonProvider>(MastodonProvider[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<MastodonProvider>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
NotNull<MastodonProvider>(string) void
Requires the Cake.Issues addin
ThrowIfNull<MastodonProvider>(string, string) T
Throws a System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ThrowIfNull<MastodonProvider>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin
ToStringWithNullMarkup() string
Requires the Cake.Issues addin