Class WikiSearchResponse

Contains information to an API response for a search query

Inheritance
WikiSearchResponse
Namespace: WikiDotNet
Assembly: Wiki.Net.dll
Syntax
public sealed class WikiSearchResponse

Fields

| Edit this page View Source

Errors

Any errors returned with the request, or null if there weren't any

Declaration
[JsonProperty("errors")]
public readonly Error[]? Errors
Field Value
TypeDescription
Error[]
| Edit this page View Source

Query

The Query that the search returned

Declaration
[JsonProperty("query")]
public readonly WikiSearchQuery Query
Field Value
TypeDescription
WikiSearchQuery
| Edit this page View Source

RequestId

The Request ID that was passed during the request

Declaration
[JsonProperty("requestid")]
public readonly string RequestId
Field Value
TypeDescription
string
| Edit this page View Source

ServedBy

The Wikipedia server that this request was served by

Declaration
[JsonProperty("servedby")]
public readonly string ServedBy
Field Value
TypeDescription
string
| Edit this page View Source

Timestamp

The time at which the Wikipedia server received the search request

Declaration
[JsonProperty("curtimestamp")]
public readonly DateTime Timestamp
Field Value
TypeDescription
DateTime
| Edit this page View Source

Warnings

Any warnings returned with the request, or null if there weren't any

Declaration
[JsonProperty("warnings")]
public readonly Warning[]? Warnings
Field Value
TypeDescription
Warning[]

Properties

| Edit this page View Source

WasSuccessful

Was this request successful, or were there errors?

Declaration
public bool WasSuccessful { get; }
Property Value
TypeDescription
bool