1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

implement RSS feed in auto messages for issue #53

modified automessages to use async mesthods instead of synchronous
This commit is contained in:
RaidMax
2019-02-18 19:30:38 -06:00
parent ea40f17f7b
commit cd49a9843e
10 changed files with 1574 additions and 29 deletions

View File

@ -0,0 +1,24 @@
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";
}
}