submodule对gitea不管用,所以直接拉了一份拉格兰
This commit is contained in:
69
Lagrange.Core/Lagrange.OneBot/Core/Entity/Common/LightApp.cs
Normal file
69
Lagrange.Core/Lagrange.OneBot/Core/Entity/Common/LightApp.cs
Normal file
@@ -0,0 +1,69 @@
|
||||
using System.Text.Json.Serialization;
|
||||
using Lagrange.OneBot.Core.Operation.Converters;
|
||||
|
||||
namespace Lagrange.OneBot.Core.Entity.Common;
|
||||
#pragma warning disable CS8618
|
||||
|
||||
[Serializable]
|
||||
public class LightApp
|
||||
{
|
||||
[JsonPropertyName("app")] public string App { get; set; }
|
||||
|
||||
[JsonPropertyName("config")] public Config Config { get; set; }
|
||||
|
||||
[JsonPropertyName("desc")] public string Desc { get; set; }
|
||||
|
||||
[JsonPropertyName("from")] public long From { get; set; }
|
||||
|
||||
[JsonPropertyName("meta")] [JsonConverter(typeof(NullIfEmptyConverter<Meta>))] public Meta Meta { get; set; }
|
||||
|
||||
[JsonPropertyName("extra")] [JsonConverter(typeof(NullIfEmptyConverter<Extra>))] public Extra? Extra { get; set; }
|
||||
|
||||
[JsonPropertyName("prompt")] public string Prompt { get; set; }
|
||||
|
||||
[JsonPropertyName("ver")] public string Ver { get; set; }
|
||||
|
||||
[JsonPropertyName("view")] public string View { get; set; }
|
||||
|
||||
[JsonPropertyName("bizsrc")] public string BizSrc { get; set; }
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public class Config
|
||||
{
|
||||
[JsonPropertyName("autosize")] public bool Autosize { get; set; }
|
||||
|
||||
[JsonPropertyName("ctime")] public long Ctime { get; set; }
|
||||
|
||||
[JsonPropertyName("token")] public string Token { get; set; }
|
||||
|
||||
[JsonPropertyName("type")] public string Type { get; set; }
|
||||
|
||||
[JsonPropertyName("forward")] public int Forward { get; set; }
|
||||
|
||||
[JsonPropertyName("height")] public int Height { get; set; }
|
||||
|
||||
[JsonPropertyName("width")] public int Width { get; set; }
|
||||
|
||||
[JsonPropertyName("showsender")] public int ShowSender { get; set; }
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public class Meta
|
||||
{
|
||||
[JsonPropertyName("Location.Search")] public LocationSearch LocationSearch { get; set; }
|
||||
|
||||
[JsonPropertyName("pic")] public Pic Pic { get; set; }
|
||||
|
||||
[JsonPropertyName("music")] public Music Music { get; set; }
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public class Extra
|
||||
{
|
||||
[JsonPropertyName("app_type")] public int AppType { get; set; }
|
||||
|
||||
[JsonPropertyName("appid")] public int AppId { get; set; }
|
||||
|
||||
[JsonPropertyName("uin")] public uint Uin { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Lagrange.OneBot.Core.Entity.Common;
|
||||
#pragma warning disable CS8618
|
||||
|
||||
[Serializable]
|
||||
public class LocationSearch
|
||||
{
|
||||
[JsonPropertyName("address")] public string Address { get; set; }
|
||||
|
||||
[JsonPropertyName("enum_relation_type")] public long EnumRelationType { get; set; }
|
||||
|
||||
[JsonPropertyName("from")] public string From { get; set; }
|
||||
|
||||
[JsonPropertyName("id")] public string Id { get; set; }
|
||||
|
||||
[JsonPropertyName("lat")] public string Lat { get; set; }
|
||||
|
||||
[JsonPropertyName("lng")] public string Lng { get; set; }
|
||||
|
||||
[JsonPropertyName("name")] public string Name { get; set; }
|
||||
}
|
||||
38
Lagrange.Core/Lagrange.OneBot/Core/Entity/Common/Music.cs
Normal file
38
Lagrange.Core/Lagrange.OneBot/Core/Entity/Common/Music.cs
Normal file
@@ -0,0 +1,38 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Lagrange.OneBot.Core.Entity.Common;
|
||||
#pragma warning disable CS8618
|
||||
|
||||
[Serializable]
|
||||
public class Music
|
||||
{
|
||||
[JsonPropertyName("action")] public string Action { get; set; }
|
||||
|
||||
[JsonPropertyName("android_pkg_name")] public string AndroidPkgName { get; set; }
|
||||
|
||||
[JsonPropertyName("app_type")] public int AppType { get; set; }
|
||||
|
||||
[JsonPropertyName("appid")] public int AppId { get; set; }
|
||||
|
||||
[JsonPropertyName("ctime")] public int Ctime { get; set; }
|
||||
|
||||
[JsonPropertyName("desc")] public string Desc { get; set; }
|
||||
|
||||
[JsonPropertyName("jumpUrl")] public string JumpUrl { get; set; }
|
||||
|
||||
[JsonPropertyName("musicUrl")] public string MusicUrl { get; set; }
|
||||
|
||||
[JsonPropertyName("preview")] public string Preview { get; set; }
|
||||
|
||||
[JsonPropertyName("sourceMsgId")] public string SourceMsgId { get; set; }
|
||||
|
||||
[JsonPropertyName("source_icon")] public string SourceIcon { get; set; }
|
||||
|
||||
[JsonPropertyName("source_url")] public string SourceUrl { get; set; }
|
||||
|
||||
[JsonPropertyName("tag")] public string Tag { get; set; }
|
||||
|
||||
[JsonPropertyName("title")] public string Title { get; set; }
|
||||
|
||||
[JsonPropertyName("uin")] public uint Uin { get; set; }
|
||||
}
|
||||
20
Lagrange.Core/Lagrange.OneBot/Core/Entity/Common/Pic.cs
Normal file
20
Lagrange.Core/Lagrange.OneBot/Core/Entity/Common/Pic.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Lagrange.OneBot.Core.Entity.Common;
|
||||
#pragma warning disable CS8618
|
||||
|
||||
[Serializable]
|
||||
public class Pic
|
||||
{
|
||||
[JsonPropertyName("back")] public bool Back { get; set; }
|
||||
|
||||
[JsonPropertyName("desc")] public string Desc { get; set; }
|
||||
|
||||
[JsonPropertyName("jumpUrl")] public string JumpUrl { get; set; }
|
||||
|
||||
[JsonPropertyName("preview")] public string Preview { get; set; }
|
||||
|
||||
[JsonPropertyName("tag")] public string Tag { get; set; }
|
||||
|
||||
[JsonPropertyName("title")] public string Title { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user