mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 21:16:49 +00:00
19 lines
No EOL
528 B
C#
19 lines
No EOL
528 B
C#
using NodaTime;
|
|
|
|
using SqlKata;
|
|
|
|
namespace PluralKit.Core;
|
|
|
|
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)
|
|
);
|
|
} |