2018-04-28 01:01:48 +02:00
|
|
|
|
using System;
|
|
|
|
|
using System.Runtime.Serialization;
|
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
using Newtonsoft.Json.Converters;
|
|
|
|
|
|
|
|
|
|
namespace WikipediaApi.Page
|
|
|
|
|
{
|
|
|
|
|
public class PagePreview
|
|
|
|
|
{
|
|
|
|
|
[JsonProperty("type")]
|
|
|
|
|
[JsonConverter(typeof(StringEnumConverter))]
|
2018-04-28 02:46:30 +02:00
|
|
|
|
public PageTypes Type { get; set; }
|
2018-04-28 01:01:48 +02:00
|
|
|
|
|
|
|
|
|
[JsonProperty("title")]
|
|
|
|
|
public string Title { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonProperty("displaytitle")]
|
|
|
|
|
public string Displaytitle { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonProperty("namespace")]
|
|
|
|
|
public PageNamespace @Namespace { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonProperty("titles")]
|
|
|
|
|
public PageTitles Titles { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonProperty("pageid")]
|
|
|
|
|
public ulong Pageid { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonProperty("thumbnail")]
|
|
|
|
|
public PageImage Thumbnail { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonProperty("originalimage")]
|
|
|
|
|
public PageImage Originalimage { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonProperty("lang")]
|
|
|
|
|
public string Lang { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonProperty("dir")]
|
|
|
|
|
public string Dir { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonProperty("revision")]
|
|
|
|
|
public ulong Revision { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonProperty("tid")]
|
|
|
|
|
public string Tid { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonProperty("timestamp")]
|
|
|
|
|
public DateTimeOffset Timestamp { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonProperty("description")]
|
|
|
|
|
public string Description { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonProperty("coordinates")]
|
|
|
|
|
public PageCoordinates Coordinates { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonProperty("content_urls")]
|
|
|
|
|
public PageContentUrlCollection ContentUrls { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonProperty("api_urls")]
|
|
|
|
|
public PageApiUrls ApiUrls { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonProperty("extract")]
|
|
|
|
|
public string Extract { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonProperty("extract_html")]
|
|
|
|
|
public string ExtractHtml { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|