PluralKit/PluralKit.Core/Models/Patch/AutoproxyPatch.cs

19 lines
528 B
C#
Raw Normal View History

using NodaTime;
using SqlKata;
namespace PluralKit.Core;
2022-03-30 06:36:39 +00:00
public class AutoproxyPatch: PatchObject
{
public Partial<AutoproxyMode> AutoproxyMode { get; set; }
public Partial<MemberId?> AutoproxyMember { get; set; }
public Partial<Instant> LastLatchTimestamp { get; set; }
public override Query Apply(Query q) => q.ApplyPatch(wrapper => wrapper
.With("autoproxy_mode", AutoproxyMode)
.With("autoproxy_member", AutoproxyMember)
.With("last_latch_timestamp", LastLatchTimestamp)
);
}