Search Results for

    Show / Hide Table of Contents

    Class ActivitypubClient

    Inheritance
    System.Object
    ActivitypubClient
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Dangl.GiteaOrgManager.Client
    Assembly: Dangl.GiteaOrgManager.dll
    Syntax
    public class ActivitypubClient

    Constructors

    | Improve this Doc View Source

    ActivitypubClient(String, HttpClient)

    Declaration
    public ActivitypubClient(string baseUrl, HttpClient httpClient)
    Parameters
    Type Name Description
    System.String baseUrl
    System.Net.Http.HttpClient httpClient

    Properties

    | Improve this Doc View Source

    BaseUrl

    Declaration
    public string BaseUrl { get; set; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    JsonSerializerSettings

    Declaration
    protected Newtonsoft.Json.JsonSerializerSettings JsonSerializerSettings { get; }
    Property Value
    Type Description
    Newtonsoft.Json.JsonSerializerSettings
    | Improve this Doc View Source

    ReadResponseAsString

    Declaration
    public bool ReadResponseAsString { get; set; }
    Property Value
    Type Description
    System.Boolean

    Methods

    | Improve this Doc View Source

    ActivitypubPersonAsync(Int32)

    Returns the Person actor for a user

    Declaration
    public virtual Task<ActivityPub> ActivitypubPersonAsync(int user_id)
    Parameters
    Type Name Description
    System.Int32 user_id

    user ID of the user

    Returns
    Type Description
    System.Threading.Tasks.Task<ActivityPub>

    ActivityPub

    Exceptions
    Type Condition
    ApiException

    A server side error occurred.

    | Improve this Doc View Source

    ActivitypubPersonAsync(Int32, CancellationToken)

    Returns the Person actor for a user

    Declaration
    public virtual async Task<ActivityPub> ActivitypubPersonAsync(int user_id, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    System.Int32 user_id

    user ID of the user

    System.Threading.CancellationToken cancellationToken

    A cancellation token that can be used by other objects or threads to receive notice of cancellation.

    Returns
    Type Description
    System.Threading.Tasks.Task<ActivityPub>

    ActivityPub

    Exceptions
    Type Condition
    ApiException

    A server side error occurred.

    | Improve this Doc View Source

    ActivitypubPersonInboxAsync(Int32)

    Send to the inbox

    Declaration
    public virtual Task ActivitypubPersonInboxAsync(int user_id)
    Parameters
    Type Name Description
    System.Int32 user_id

    user ID of the user

    Returns
    Type Description
    System.Threading.Tasks.Task

    APIEmpty is an empty response

    Exceptions
    Type Condition
    ApiException

    A server side error occurred.

    | Improve this Doc View Source

    ActivitypubPersonInboxAsync(Int32, CancellationToken)

    Send to the inbox

    Declaration
    public virtual async Task ActivitypubPersonInboxAsync(int user_id, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    System.Int32 user_id

    user ID of the user

    System.Threading.CancellationToken cancellationToken

    A cancellation token that can be used by other objects or threads to receive notice of cancellation.

    Returns
    Type Description
    System.Threading.Tasks.Task

    APIEmpty is an empty response

    Exceptions
    Type Condition
    ApiException

    A server side error occurred.

    | Improve this Doc View Source

    ReadObjectResponseAsync<T>(HttpResponseMessage, IReadOnlyDictionary<String, IEnumerable<String>>, CancellationToken)

    Declaration
    protected virtual async Task<ActivitypubClient.ObjectResponseResult<T>> ReadObjectResponseAsync<T>(HttpResponseMessage response, IReadOnlyDictionary<string, IEnumerable<string>> headers, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    System.Net.Http.HttpResponseMessage response
    System.Collections.Generic.IReadOnlyDictionary<System.String, System.Collections.Generic.IEnumerable<System.String>> headers
    System.Threading.CancellationToken cancellationToken
    Returns
    Type Description
    System.Threading.Tasks.Task<ActivitypubClient.ObjectResponseResult<T>>
    Type Parameters
    Name Description
    T
    • Improve this Doc
    • View Source
    In This Article
    Back to top © Dangl IT GmbH