Skip to content

Commit 48bc376

Browse files
committed
Update API for search history tracking.
1 parent 85ecc6f commit 48bc376

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

src/Seq.Api/Model/Users/SearchHistoryItemStatus.cs renamed to src/Seq.Api/Model/Users/SearchHistoryItemAction.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ namespace Seq.Api.Model.Users
1717
/// <summary>
1818
/// An operation applied to a search history item.
1919
/// </summary>
20-
public enum SearchHistoryItemStatus
20+
public enum SearchHistoryItemAction
2121
{
2222
/// <summary>
2323
/// The item was used (make it more recent).
@@ -28,10 +28,10 @@ public enum SearchHistoryItemStatus
2828
/// The item has been pinned.
2929
/// </summary>
3030
Pinned,
31-
31+
3232
/// <summary>
33-
/// The item has been un-pinned.
33+
/// The item has been unpinned.
3434
/// </summary>
35-
Forgotten
35+
Unpinned
3636
}
3737
}

src/Seq.Api/Model/Users/SearchHistoryItemPart.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
// ReSharper disable ClassNeverInstantiated.Global
16+
1517
namespace Seq.Api.Model.Users
1618
{
1719
/// <summary>
@@ -20,13 +22,13 @@ namespace Seq.Api.Model.Users
2022
public class SearchHistoryItemPart
2123
{
2224
/// <summary>
23-
/// The filter entered by the user into the filter bar.
25+
/// The search or query entered by the user into the search bar.
2426
/// </summary>
2527
public string Search { get; set; }
2628

2729
/// <summary>
2830
/// Status to apply to the search history item.
2931
/// </summary>
30-
public SearchHistoryItemStatus Status { get; set; }
32+
public SearchHistoryItemAction Action { get; set; }
3133
}
3234
}

0 commit comments

Comments
 (0)