C# Class SnooNotesAPI.DAL.DirtbagDAL

Show file Open project: CrustyJew/SnooNotes

Public Methods

Method Description
AddToBanList ( DirtbagSettings conn, List list ) : System.Threading.Tasks.Task
GetBanList ( DirtbagSettings conn, string subreddit ) : Task>
RemoveFromBanList ( DirtbagSettings conn, int id, string modName, string subreddit ) : Task
TestConnection ( DirtbagSettings botSettings, string subreddit ) : Task
TestConnection ( string dirtbagUrl, string dirtbagUsername, string dirtbagPassword, string subreddit ) : Task
UpdateBanReason ( DirtbagSettings conn, string subName, int id, string reason, string modname ) : System.Threading.Tasks.Task

Private Methods

Method Description
ValidateCert ( object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors ) : bool

Method Details

AddToBanList() public method

public AddToBanList ( DirtbagSettings conn, List list ) : System.Threading.Tasks.Task
conn SnooNotesAPI.Models.DirtbagSettings
list List
return System.Threading.Tasks.Task

GetBanList() public method

public GetBanList ( DirtbagSettings conn, string subreddit ) : Task>
conn SnooNotesAPI.Models.DirtbagSettings
subreddit string
return Task>

RemoveFromBanList() public method

public RemoveFromBanList ( DirtbagSettings conn, int id, string modName, string subreddit ) : Task
conn SnooNotesAPI.Models.DirtbagSettings
id int
modName string
subreddit string
return Task

TestConnection() public method

public TestConnection ( DirtbagSettings botSettings, string subreddit ) : Task
botSettings SnooNotesAPI.Models.DirtbagSettings
subreddit string
return Task

TestConnection() public method

public TestConnection ( string dirtbagUrl, string dirtbagUsername, string dirtbagPassword, string subreddit ) : Task
dirtbagUrl string
dirtbagUsername string
dirtbagPassword string
subreddit string
return Task

UpdateBanReason() public method

public UpdateBanReason ( DirtbagSettings conn, string subName, int id, string reason, string modname ) : System.Threading.Tasks.Task
conn SnooNotesAPI.Models.DirtbagSettings
subName string
id int
reason string
modname string
return System.Threading.Tasks.Task