TootResponse Class

Summary

Response from sending a toot.
Assembly
Cake.Mastodon.dll
Namespace
Cake.Mastodon
Base Types
  • ValueType
graph BT Type-->Base0["ValueType"] Type["TootResponse"] class Type type-node

Syntax

public sealed class TootResponse : ValueType

Attributes

Type Description
NullableContextAttribute
NullableAttribute
IsReadOnlyAttribute

Properties

Name Value Summary
Body string
The body of response.
IsSuccess bool
If the HTTP response status code is a success.
ReasonPhrase string
Reason phrase given by response.
StatusCode HttpStatusCode
Actual status code.

Extension Methods

Name Value Summary
Dump<TootResponse>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<TootResponse>(TootResponse[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<TootResponse>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
NotNull<TootResponse>(string) void
Requires the Cake.Issues addin
ThrowIfNull<TootResponse>(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<TootResponse>(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