2e6889d9bb
modified automessages to use async mesthods instead of synchronous
25 lines
728 B
C#
25 lines
728 B
C#
using SharedLibraryCore;
|
|
using SharedLibraryCore.Interfaces;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace AutomessageFeed
|
|
{
|
|
class Configuration : IBaseConfiguration
|
|
{
|
|
public bool EnableFeed { get; set; }
|
|
public string FeedUrl { get; set; }
|
|
|
|
public IBaseConfiguration Generate()
|
|
{
|
|
EnableFeed = Utilities.PromptBool(Utilities.CurrentLocalization.LocalizationIndex["PLUGINS_AUTOMESSAGEFEED_PROMPT_ENABLE"]);
|
|
FeedUrl = Utilities.PromptString(Utilities.CurrentLocalization.LocalizationIndex["PLUGINS_AUTOMESSAGEFEED_URL"]);
|
|
|
|
return this;
|
|
}
|
|
|
|
public string Name() => "AutomessageFeedConfiguration";
|
|
}
|
|
}
|