ibms-dome/BackendWorkerService/Services/Implement/RainApi.cs

82 lines
2.2 KiB
C#
Raw Normal View History

2023-05-31 18:12:14 +08:00
using System;
using System.Collections.Generic;
using System.Text;
// <auto-generated />
//
// To parse this JSON data, add NuGet 'Newtonsoft.Json' then do:
//
// using QuickType;
//
// var welcome = Welcome.FromJson(jsonString);
namespace RainApi
{
using System;
using System.Collections.Generic;
using System.Globalization;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
public partial class Welcome
{
public Xml Xml { get; set; }
public Alert Alert { get; set; }
}
public partial class Alert
{
public string Xmlns { get; set; }
public string Identifier { get; set; }
public string Sender { get; set; }
public DateTimeOffset Sent { get; set; }
public string Status { get; set; }
public string MsgType { get; set; }
public string Scope { get; set; }
public string References { get; set; }
2023-11-16 17:00:10 +08:00
public Info Info { get; set; }
2023-05-31 18:12:14 +08:00
}
public partial class Info
{
public string Language { get; set; }
public string Category { get; set; }
public string Event { get; set; }
public string Urgency { get; set; }
public string Severity { get; set; }
public string Certainty { get; set; }
public EventCode EventCode { get; set; }
public DateTimeOffset Effective { get; set; }
public DateTimeOffset Onset { get; set; }
public DateTimeOffset Expires { get; set; }
public string SenderName { get; set; }
public string Headline { get; set; }
public string Description { get; set; }
2023-11-16 17:00:10 +08:00
public string Instruction { get; set; }
2023-05-31 18:12:14 +08:00
public Uri Web { get; set; }
2023-11-16 17:00:10 +08:00
public EventCode Parameter { get; set; }
public List<Area> Area { get; set; }
2023-05-31 18:12:14 +08:00
}
public partial class Area
{
public string AreaDesc { get; set; }
public EventCode Geocode { get; set; }
}
public partial class EventCode
{
2023-11-16 17:00:10 +08:00
public string ValueName { get; set; }
2023-05-31 18:12:14 +08:00
public string Value { get; set; }
}
public partial class Xml
{
public string Version { get; set; }
public string Encoding { get; set; }
}
2023-11-16 17:00:10 +08:00
public enum ValueName { AlertTitle, ProfileCapTwpEvent10, TaiwanGeocode103 };
2023-05-31 18:12:14 +08:00
}