2020-08-05 14:06:55 -07:00
|
|
|
|
// 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;
|
2020-07-07 13:02:39 -07:00
|
|
|
|
|
|
|
|
|
|
namespace Wox.Plugin
|
|
|
|
|
|
{
|
|
|
|
|
|
public class ToolTipData
|
|
|
|
|
|
{
|
|
|
|
|
|
public string Title { get; private set; }
|
|
|
|
|
|
|
|
|
|
|
|
public string Text { get; private set; }
|
|
|
|
|
|
|
|
|
|
|
|
public ToolTipData(string title, string text)
|
2020-07-22 13:27:17 -07:00
|
|
|
|
{
|
|
|
|
|
|
if (string.IsNullOrEmpty(title))
|
2020-07-07 13:02:39 -07:00
|
|
|
|
{
|
2020-11-24 22:03:43 +01:00
|
|
|
|
// DO NOT LOCALIZE internal exception message
|
2020-10-26 15:14:33 -07:00
|
|
|
|
throw new ArgumentException("title cannot be null or empty", nameof(title));
|
2020-07-07 13:02:39 -07:00
|
|
|
|
}
|
2020-08-05 14:06:55 -07:00
|
|
|
|
|
2020-07-07 13:02:39 -07:00
|
|
|
|
Title = title;
|
|
|
|
|
|
Text = text;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|