BaseDiscussionThreadsCapability<T> Class

Summary

Capability to read, resolve and reopen discussion threads.
graph BT Type-->Base0["BasePullRequestSystemCapability<T>"] Base0-->Base1["Object"] Type-.->Interface0["ISupportDiscussionThreads"] click Interface0 "/api/Cake.Issues.PullRequests/ISupportDiscussionThreads" Type-.->Interface1["IPullRequestSystemCapability"] click Interface1 "/api/Cake.Issues.PullRequests/IPullRequestSystemCapability" Type["BaseDiscussionThreadsCapability<T>"] class Type type-node

Syntax

public abstract class BaseDiscussionThreadsCapability<T> : BasePullRequestSystemCapability<T>, 
    ISupportDiscussionThreads, IPullRequestSystemCapability
    where T : class, IPullRequestSystem

Type Parameters

Name Description
T Type of the pull request system to which this capability belongs.

Constructors

Name Summary
BaseDiscussionThreadsCapability(ICakeLog, T) Capability to read, resolve and reopen discussion threads.

Methods

Name Value Summary
FetchDiscussionThreads(string) IEnumerable<IPullRequestDiscussionThread>
Returns a list of all discussion threads.
InternalFetchDiscussionThreads(string) IEnumerable<IPullRequestDiscussionThread>
Returns a list of all discussion threads. Compared to FetchDiscussionThreads(string) it is safe to access Settings from this method.
InternalReopenDiscussionThreads(IEnumerable<IPullRequestDiscussionThread>) void
Marks a list of discussion threads as active. Compared to Cake.Issues.PullRequests.BaseDiscussionThreadsCapability`1.ReopenDiscussionThreads(System.Collections.Generic.IEnumerable{Cake.Issues.PullRequests.IPullRequestDiscussionThread}) it is safe to access Settings from this method.
InternalResolveDiscussionThreads(IEnumerable<IPullRequestDiscussionThread>) void
Marks a list of discussion threads as resolved. Compared to Cake.Issues.PullRequests.BaseDiscussionThreadsCapability`1.ResolveDiscussionThreads(System.Collections.Generic.IEnumerable{Cake.Issues.PullRequests.IPullRequestDiscussionThread}) it is safe to access Settings from this method.
ReopenDiscussionThreads(IEnumerable<IPullRequestDiscussionThread>) void
Marks a list of discussion threads as active.
ResolveDiscussionThreads(IEnumerable<IPullRequestDiscussionThread>) void
Marks a list of discussion threads as resolved.

Extension Methods

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