RequestBase
Namespace: Signal.Bot.Requests
Full Name: Signal.Bot.Requests.RequestBase
Summary
Base class for all Signal Bot API requests without a typed response. Provides common functionality for HTTP method specification and JSON serialization.
Properties
MethodName
The API endpoint method name (e.g., "v2/send", "v1/groups/{number}").
Method
Optional HTTP method to use. Defaults to POST if not specified.
HttpMethod
Gets the HTTP method to use for this request. Defaults to POST if not specified in the constructor.
Methods
#ctor
#ctor(MethodName, Method)Base class for all Signal Bot API requests without a typed response. Provides common functionality for HTTP method specification and JSON serialization.
Parameters:
MethodName- The API endpoint method name (e.g., "v2/send", "v1/groups/{number}").Method- Optional HTTP method to use. Defaults to POST if not specified.
ToHttpContent
ToHttpContent()Converts the request object to HTTP content using JSON serialization with Signal Bot API options.
Returns: An HttpContent instance containing the JSON-serialized request body.
