Flow.Launcher/Flow.Launcher.Core/Plugin/JsonRPCConfigurationModel.cs

47 lines
1.5 KiB
C#
Raw Normal View History

2022-12-10 00:53:41 +00:00
using System;
using System.Collections.Generic;
2021-10-30 18:46:57 +00:00
namespace Flow.Launcher.Core.Plugin
{
public class JsonRpcConfigurationModel
{
public List<SettingField> Body { get; set; }
public void Deconstruct(out List<SettingField> Body)
{
Body = this.Body;
}
}
public class SettingField
{
public string Type { get; set; }
public FieldAttributes Attributes { get; set; }
public void Deconstruct(out string Type, out FieldAttributes attributes)
{
Type = this.Type;
attributes = this.Attributes;
}
}
public class FieldAttributes
{
public string Name { get; set; }
public string Label { get; set; }
public string Description { get; set; }
2022-12-10 00:53:41 +00:00
public string urlLabel { get; set; }
public Uri url { get; set; }
2021-10-30 18:46:57 +00:00
public bool Validation { get; set; }
public List<string> Options { get; set; }
public string DefaultValue { get; set; }
2021-11-14 05:59:14 +00:00
public char passwordChar { get; set; }
2021-10-30 18:46:57 +00:00
public void Deconstruct(out string Name, out string Label, out string Description, out bool Validation, out List<string> Options, out string DefaultValue)
{
Name = this.Name;
Label = this.Label;
Description = this.Description;
Validation = this.Validation;
Options = this.Options;
DefaultValue = this.DefaultValue;
}
}
2022-12-10 00:53:41 +00:00
}