mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
16 lines
440 B
C#
16 lines
440 B
C#
#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);
|
|
} |