mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-27 03:14:18 +08:00
29 lines
1023 B
C#
29 lines
1023 B
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Text;
|
|||
|
using System.Text.Json;
|
|||
|
|
|||
|
namespace Microsoft.PowerToys.Settings.UI.Lib
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// PowerToys runner expects a json text that contains one of the following attributes: refresh, general and powertoys.
|
|||
|
/// The one for general settings is placed in the General settings model. This class represents the json text that starts with the "powertoys" attribute.
|
|||
|
/// this will tell the runner that we are sending settings for a powertoy module and not for general settings.
|
|||
|
/// </summary>
|
|||
|
/// <typeparam name="M">M stands for the Model of PT Module Settings to be sent.</typeparam>
|
|||
|
public class SndModuleSettings<M>
|
|||
|
{
|
|||
|
public M powertoys { get; set; }
|
|||
|
|
|||
|
public SndModuleSettings(M ptModuleSettings)
|
|||
|
{
|
|||
|
this.powertoys = ptModuleSettings;
|
|||
|
}
|
|||
|
|
|||
|
public override string ToString()
|
|||
|
{
|
|||
|
return "{\"powertoys\":" + this.powertoys.ToString() + "}";
|
|||
|
}
|
|||
|
}
|
|||
|
}
|