Skip to content

Commit

Permalink
Update API for search history tracking.
Browse files Browse the repository at this point in the history
  • Loading branch information
nblumhardt committed Mar 15, 2022
1 parent 85ecc6f commit 48bc376
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ namespace Seq.Api.Model.Users
/// <summary>
/// An operation applied to a search history item.
/// </summary>
public enum SearchHistoryItemStatus
public enum SearchHistoryItemAction
{
/// <summary>
/// The item was used (make it more recent).
Expand All @@ -28,10 +28,10 @@ public enum SearchHistoryItemStatus
/// The item has been pinned.
/// </summary>
Pinned,

/// <summary>
/// The item has been un-pinned.
/// The item has been unpinned.
/// </summary>
Forgotten
Unpinned
}
}
6 changes: 4 additions & 2 deletions src/Seq.Api/Model/Users/SearchHistoryItemPart.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

// ReSharper disable ClassNeverInstantiated.Global

namespace Seq.Api.Model.Users
{
/// <summary>
Expand All @@ -20,13 +22,13 @@ namespace Seq.Api.Model.Users
public class SearchHistoryItemPart
{
/// <summary>
/// The filter entered by the user into the filter bar.
/// The search or query entered by the user into the search bar.
/// </summary>
public string Search { get; set; }

/// <summary>
/// Status to apply to the search history item.
/// </summary>
public SearchHistoryItemStatus Status { get; set; }
public SearchHistoryItemAction Action { get; set; }
}
}

0 comments on commit 48bc376

Please sign in to comment.