25 lines
549 B
C#
25 lines
549 B
C#
using SqlKata;
|
|
|
|
using Newtonsoft.Json.Linq;
|
|
|
|
namespace PluralKit.Core
|
|
{
|
|
public class AccountPatch: PatchObject
|
|
{
|
|
public Partial<bool> AllowAutoproxy { get; set; }
|
|
|
|
public override Query Apply(Query q) => q.ApplyPatch(wrapper => wrapper
|
|
.With("allow_autoproxy", AllowAutoproxy)
|
|
);
|
|
|
|
public JObject ToJson()
|
|
{
|
|
var o = new JObject();
|
|
|
|
if (AllowAutoproxy.IsPresent)
|
|
o.Add("allow_autoproxy", AllowAutoproxy.Value);
|
|
|
|
return o;
|
|
}
|
|
}
|
|
} |