Class WikiSearchResponse
Contains information to an API response for a search query
Inherited Members
Namespace: WikiDotNet
Assembly: Wiki.Net.dll
Syntax
public sealed class WikiSearchResponse
Fields
| Edit this page View SourceErrors
Any errors returned with the request, or null if there weren't any
Declaration
[JsonProperty("errors")]
public readonly Error[]? Errors
Field Value
Type | Description |
---|---|
Error[] |
Query
The Query that the search returned
Declaration
[JsonProperty("query")]
public readonly WikiSearchQuery Query
Field Value
Type | Description |
---|---|
WikiSearchQuery |
RequestId
The Request ID that was passed during the request
Declaration
[JsonProperty("requestid")]
public readonly string RequestId
Field Value
Type | Description |
---|---|
string |
ServedBy
The Wikipedia server that this request was served by
Declaration
[JsonProperty("servedby")]
public readonly string ServedBy
Field Value
Type | Description |
---|---|
string |
Timestamp
The time at which the Wikipedia server received the search request
Declaration
[JsonProperty("curtimestamp")]
public readonly DateTime Timestamp
Field Value
Type | Description |
---|---|
DateTime |
Warnings
Any warnings returned with the request, or null if there weren't any
Declaration
[JsonProperty("warnings")]
public readonly Warning[]? Warnings
Field Value
Type | Description |
---|---|
Warning[] |
Properties
| Edit this page View SourceWasSuccessful
Was this request successful, or were there errors?
Declaration
public bool WasSuccessful { get; }
Property Value
Type | Description |
---|---|
bool |