mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
[quote] Code cleanup.
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
#nullable disable
|
||||
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Serialization;
|
||||
|
||||
namespace West.TelegramBot.ChatQuotes.Model.Quote;
|
||||
|
||||
[JsonObject(NamingStrategyType = typeof(CamelCaseNamingStrategy))]
|
||||
public class Response
|
||||
{
|
||||
public bool Ok { get; set; }
|
||||
|
||||
public Result Result { get; set; }
|
||||
public static Response FromJson(string json)
|
||||
=> JsonConvert.DeserializeObject<Response>(json, ChatQuotes.SerializerSettings);
|
||||
}
|
||||
Reference in New Issue
Block a user