mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 19:26:39 +02:00
18 lines
545 B
C#
18 lines
545 B
C#
|
|
// Copyright (c) Microsoft Corporation
|
|||
|
|
// The Microsoft Corporation licenses this file to you under the MIT license.
|
|||
|
|
// See the LICENSE file in the project root for more information.
|
|||
|
|
|
|||
|
|
using System;
|
|||
|
|
using System.Text.Json;
|
|||
|
|
|
|||
|
|
namespace Microsoft.CmdPal.Ext.WebSearch.Helpers;
|
|||
|
|
|
|||
|
|
public class HistoryItem(string searchString, DateTime timestamp)
|
|||
|
|
{
|
|||
|
|
public string SearchString { get; private set; } = searchString;
|
|||
|
|
|
|||
|
|
public DateTime Timestamp { get; private set; } = timestamp;
|
|||
|
|
|
|||
|
|
public string ToJson() => JsonSerializer.Serialize(this);
|
|||
|
|
}
|