From 4ef9ae4b396b0eb37036d4008e8cb40e468dbe73 Mon Sep 17 00:00:00 2001 From: "Emma [it/its]@Rory&" Date: Fri, 9 Feb 2024 16:32:46 +0100 Subject: Apply syntax style to LibMatrix --- LibMatrix/Filters/SyncFilter.cs | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) (limited to 'LibMatrix/Filters/SyncFilter.cs') diff --git a/LibMatrix/Filters/SyncFilter.cs b/LibMatrix/Filters/SyncFilter.cs index 5ffef4d..787ffa7 100644 --- a/LibMatrix/Filters/SyncFilter.cs +++ b/LibMatrix/Filters/SyncFilter.cs @@ -24,21 +24,30 @@ public class SyncFilter { [JsonPropertyName("timeline")] public StateFilter? Timeline { get; set; } - + [JsonPropertyName("rooms")] public List? Rooms { get; set; } - + [JsonPropertyName("not_rooms")] public List? NotRooms { get; set; } - + [JsonPropertyName("include_leave")] public bool? IncludeLeave { get; set; } - public class StateFilter(bool? containsUrl = null, bool? includeRedundantMembers = null, bool? lazyLoadMembers = null, List? rooms = null, - List? notRooms = null, bool? unreadThreadNotifications = null, + public class StateFilter( + bool? containsUrl = null, + bool? includeRedundantMembers = null, + bool? lazyLoadMembers = null, + List? rooms = null, + List? notRooms = null, + bool? unreadThreadNotifications = null, //base ctor - int? limit = null, List? types = null, List? notTypes = null, List? senders = null, List? notSenders = null - ) : EventFilter(limit: limit, types: types, notTypes: notTypes, senders: senders, notSenders: notSenders) { + int? limit = null, + List? types = null, + List? notTypes = null, + List? senders = null, + List? notSenders = null + ) : EventFilter(limit, types, notTypes, senders, notSenders) { [JsonPropertyName("contains_url")] public bool? ContainsUrl { get; set; } = containsUrl; -- cgit 1.4.1