From 0406bb4a441a688ec925f4851138ff8a54304e23 Mon Sep 17 00:00:00 2001 From: Anna Date: Tue, 27 Apr 2021 10:23:43 -0400 Subject: [PATCH] feat: expose cached listings to api --- XivCommon/Functions/PartyFinder.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/XivCommon/Functions/PartyFinder.cs b/XivCommon/Functions/PartyFinder.cs index ac6c49a..9ca3e45 100755 --- a/XivCommon/Functions/PartyFinder.cs +++ b/XivCommon/Functions/PartyFinder.cs @@ -47,6 +47,19 @@ namespace XivCommon.Functions { private Dictionary Listings { get; } = new(); private int LastBatch { get; set; } = -1; + /// + /// + /// The current Party Finder listings that have been displayed. + /// + /// + /// This dictionary is cleared and updated each time the Party Finder is requested, and it only contains the category selected in the Party Finder addon. + /// + /// + /// Keys are the listing ID for fast lookup by ID. Values are the listing itself. + /// + /// + public IReadOnlyDictionary CurrentListings => this.Listings; + internal PartyFinder(SigScanner scanner, PartyFinderGui partyFinderGui, Hooks hooks) { this.PartyFinderGui = partyFinderGui;