本帖最后由 zmolli775 于 2022-4-15 16:50 编辑
[C#] 纯文本查看 复制代码
using System;
using System.Collections.Generic;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace Example
{
internal partial class Root
{
internal class Setting2
{
[JsonProperty("city")]
public string City { get; set; }
}
}
internal partial class Root
{
internal class Imgs2
{
[JsonProperty("1")]
public string _1 { get; set; }
[JsonProperty("0")]
public string _0 { get; set; }
}
}
internal partial class Root
{
internal class Today2
{
[JsonProperty("time")]
public string Time { get; set; }
[JsonProperty("date")]
public string Date { get; set; }
[JsonProperty("img")]
public string[] Img { get; set; }
[JsonProperty("condition")]
public string Condition { get; set; }
[JsonProperty("wind")]
public string Wind { get; set; }
[JsonProperty("temp")]
public string Temp { get; set; }
[JsonProperty("link")]
public string Link { get; set; }
[JsonProperty("imgs")]
public Imgs2 Imgs { get; set; }
[JsonProperty("pm25")]
public string Pm25 { get; set; }
[JsonProperty("pollution")]
public string Pollution { get; set; }
[JsonProperty("pm25url")]
public string Pm25url { get; set; }
}
}
internal partial class Root
{
internal class Imgs3
{
[JsonProperty("1")]
public string _1 { get; set; }
[JsonProperty("0")]
public string _0 { get; set; }
}
}
internal partial class Root
{
internal class Tomorrow2
{
[JsonProperty("time")]
public string Time { get; set; }
[JsonProperty("date")]
public string Date { get; set; }
[JsonProperty("img")]
public string[] Img { get; set; }
[JsonProperty("condition")]
public string Condition { get; set; }
[JsonProperty("wind")]
public string Wind { get; set; }
[JsonProperty("temp")]
public string Temp { get; set; }
[JsonProperty("link")]
public string Link { get; set; }
[JsonProperty("imgs")]
public Imgs3 Imgs { get; set; }
[JsonProperty("pm25")]
public string Pm25 { get; set; }
[JsonProperty("pollution")]
public string Pollution { get; set; }
[JsonProperty("pm25url")]
public string Pm25url { get; set; }
}
}
internal partial class Root
{
internal class Imgs4
{
[JsonProperty("1")]
public string _1 { get; set; }
[JsonProperty("0")]
public string _0 { get; set; }
}
}
internal partial class Root
{
internal class Thirdday2
{
[JsonProperty("time")]
public string Time { get; set; }
[JsonProperty("date")]
public string Date { get; set; }
[JsonProperty("img")]
public string[] Img { get; set; }
[JsonProperty("condition")]
public string Condition { get; set; }
[JsonProperty("wind")]
public string Wind { get; set; }
[JsonProperty("temp")]
public string Temp { get; set; }
[JsonProperty("link")]
public string Link { get; set; }
[JsonProperty("imgs")]
public Imgs4 Imgs { get; set; }
[JsonProperty("pm25")]
public string Pm25 { get; set; }
[JsonProperty("pollution")]
public string Pollution { get; set; }
[JsonProperty("pm25url")]
public string Pm25url { get; set; }
}
}
internal partial class Root
{
internal class Imgs5
{
[JsonProperty("1")]
public string _1 { get; set; }
[JsonProperty("0")]
public string _0 { get; set; }
}
}
internal partial class Root
{
internal class Fourthday2
{
[JsonProperty("time")]
public string Time { get; set; }
[JsonProperty("date")]
public string Date { get; set; }
[JsonProperty("img")]
public string[] Img { get; set; }
[JsonProperty("condition")]
public string Condition { get; set; }
[JsonProperty("wind")]
public string Wind { get; set; }
[JsonProperty("temp")]
public string Temp { get; set; }
[JsonProperty("link")]
public string Link { get; set; }
[JsonProperty("imgs")]
public Imgs5 Imgs { get; set; }
}
}
internal partial class Root
{
internal class Imgs6
{
[JsonProperty("1")]
public string _1 { get; set; }
[JsonProperty("0")]
public string _0 { get; set; }
}
}
internal partial class Root
{
internal class Fifthday2
{
[JsonProperty("time")]
public string Time { get; set; }
[JsonProperty("date")]
public string Date { get; set; }
[JsonProperty("img")]
public string[] Img { get; set; }
[JsonProperty("condition")]
public string Condition { get; set; }
[JsonProperty("wind")]
public string Wind { get; set; }
[JsonProperty("temp")]
public string Temp { get; set; }
[JsonProperty("link")]
public string Link { get; set; }
[JsonProperty("imgs")]
public Imgs6 Imgs { get; set; }
}
}
internal partial class Root
{
internal class Source2
{
[JsonProperty("name")]
public string Name { get; set; }
[JsonProperty("url")]
public string Url { get; set; }
}
}
internal partial class Root
{
internal class Calendar2
{
[JsonProperty("time")]
public string Time { get; set; }
[JsonProperty("lunar")]
public string Lunar { get; set; }
[JsonProperty("festival")]
public bool Festival { get; set; }
[JsonProperty("weatherSourceUrl")]
public string WeatherSourceUrl { get; set; }
}
}
internal partial class Root
{
internal class Content2
{
[JsonProperty("week")]
public string Week { get; set; }
[JsonProperty("city")]
public string City { get; set; }
[JsonProperty("today")]
public Today2 Today { get; set; }
[JsonProperty("tomorrow")]
public Tomorrow2 Tomorrow { get; set; }
[JsonProperty("thirdday")]
public Thirdday2 Thirdday { get; set; }
[JsonProperty("fourthday")]
public Fourthday2 Fourthday { get; set; }
[JsonProperty("fifthday")]
public Fifthday2 Fifthday { get; set; }
[JsonProperty("linkseven")]
public string Linkseven { get; set; }
[JsonProperty("source")]
public Source2 Source { get; set; }
[JsonProperty("cityname")]
public string Cityname { get; set; }
[JsonProperty("calendar")]
public Calendar2 Calendar { get; set; }
[JsonProperty("currenttemp")]
public string Currenttemp { get; set; }
[JsonProperty("pslink")]
public string Pslink { get; set; }
[JsonProperty("weatherType")]
public string WeatherType { get; set; }
[JsonProperty("isauto")]
public bool Isauto { get; set; }
[JsonProperty("ipcity")]
public string Ipcity { get; set; }
[JsonProperty("province")]
public string Province { get; set; }
}
}
internal partial class Root
{
internal class Weather2
{
[JsonProperty("setting")]
public Setting2 Setting { get; set; }
[JsonProperty("content")]
public Content2 Content { get; set; }
}
}
internal partial class Root
{
internal class Data2
{
[JsonProperty("weather")]
public Weather2 Weather { get; set; }
}
}
internal partial class Root
{
[JsonProperty("errNo")]
public string ErrNo { get; set; }
[JsonProperty("data")]
public Data2 Data { get; set; }
}
} |