mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00

ConfigurationDataBaseicLoginWithRSSAndDisplay - a ConfigData class that provides a display item member. I am new to c# so I haven't figured out if I coud have avoided this by added it to the object after instantiation. Looks possible with expandoobject but I felt that would be changing too much
26 lines
862 B
C#
26 lines
862 B
C#
using Newtonsoft.Json.Linq;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Jackett.Models.IndexerConfig
|
|
{
|
|
public class ConfigurationDataBasicLoginWithRSSAndDisplay : ConfigurationData
|
|
{
|
|
public StringItem Username { get; private set; }
|
|
public StringItem Password { get; private set; }
|
|
public HiddenItem RSSKey { get; private set; }
|
|
public DisplayItem DisplayText { get; private set; }
|
|
|
|
public ConfigurationDataBasicLoginWithRSSAndDisplay()
|
|
{
|
|
Username = new StringItem { Name = "Username" };
|
|
Password = new StringItem { Name = "Password" };
|
|
RSSKey = new HiddenItem { Name = "RSSKey" };
|
|
DisplayText = new DisplayItem(""){ Name = "" };
|
|
}
|
|
}
|
|
}
|