![]() |
Reddit.NET
1.5
Reddit.NET is a .NET Standard library that provides easy access to the Reddit API with virtually no boilerplate code required.
|
Controller class for modmail. More...
Public Member Functions | |
Modmail (Dispatch dispatch) | |
Create a new instance of the modmail controller. More... | |
ConversationContainer | GetConversations (string after="", string entity="", string sort="unread", string state="all", int limit=25) |
Get conversations for a logged in user or subreddits. More... | |
ConversationContainer | GetConversations (ModmailGetConversationsInput modmailGetConversationsInput) |
Get conversations for a logged in user or subreddits. More... | |
ConversationContainer | GetRecentConversations (string after="", string entity="", string state="all", int limit=25) |
Get recent conversations for a logged in user or subreddits. More... | |
ConversationContainer | GetRecentConversations (ModmailGetConversationsInput modmailGetConversationsInput) |
Get recent conversations for a logged in user or subreddits. More... | |
ConversationContainer | GetModConversations (string after="", string entity="", string state="all", int limit=25) |
Get mod conversations for a logged in user or subreddits. More... | |
ConversationContainer | GetModConversations (ModmailGetConversationsInput modmailGetConversationsInput) |
Get mod conversations for a logged in user or subreddits. More... | |
ConversationContainer | GetUserConversations (string after="", string entity="", string state="all", int limit=25) |
Get user conversations for a logged in user or subreddits. More... | |
ConversationContainer | GetUserConversations (ModmailGetConversationsInput modmailGetConversationsInput) |
Get user conversations for a logged in user or subreddits. More... | |
ConversationContainer | GetUnreadConversations (string after="", string entity="", string state="all", int limit=25) |
Get unread conversations for a logged in user or subreddits. More... | |
ConversationContainer | GetUnreadConversations (ModmailGetConversationsInput modmailGetConversationsInput) |
Get user conversations for a logged in user or subreddits. More... | |
int | Count (bool useRecent=true, bool useMod=true, bool useUser=true, bool useUnread=true) |
Count the number of conversations. More... | |
ModmailConversationContainer | NewConversation (string body="", string subject="", string srName="", string to="", bool isAuthorHidden=false) |
Creates a new conversation for a particular SR. This endpoint will create a ModmailConversation object as well as the first ModmailMessage within the ModmailConversation object. More... | |
async Task< ModmailConversationContainer > | NewConversationAsync (string body="", string subject="", string srName="", string to="", bool isAuthorHidden=false) |
Creates a new conversation for a particular SR asynchronously. This endpoint will create a ModmailConversation object as well as the first ModmailMessage within the ModmailConversation object. More... | |
ModmailConversationContainer | NewConversation (ModmailNewConversationInput modmailNewConversationInput, string gRecaptchaResponse="") |
Creates a new conversation for a particular SR. This endpoint will create a ModmailConversation object as well as the first ModmailMessage within the ModmailConversation object. More... | |
async Task< ModmailConversationContainer > | NewConversationAsync (ModmailNewConversationInput modmailNewConversationInput) |
Creates a new conversation for a particular SR asynchronously. This endpoint will create a ModmailConversation object as well as the first ModmailMessage within the ModmailConversation object. More... | |
ModmailConversationContainer | GetConversation (string conversationId, bool markRead=false) |
Returns all messages, mod actions and conversation metadata for a given conversation id. More... | |
ModmailConversationContainer | NewMessage (string conversationId, string body="", bool isAuthorHidden=false, bool isInternal=false) |
Creates a new message for a particular conversation. More... | |
async Task< ModmailConversationContainer > | NewMessageAsync (string conversationId, string body="", bool isAuthorHidden=false, bool isInternal=false) |
Creates a new message for a particular conversation asynchronously. More... | |
ModmailConversationContainer | NewMessage (string conversationId, ModmailNewMessageInput modmailNewMessageInput) |
Creates a new message for a particular conversation. More... | |
async Task< ModmailConversationContainer > | NewMessageAsync (string conversationId, ModmailNewMessageInput modmailNewMessageInput) |
Creates a new message for a particular conversation asynchronously. More... | |
ModmailConversationContainer | MarkHighlighted (string conversationId) |
Marks a conversation as highlighted. More... | |
async Task< ModmailConversationContainer > | MarkHighlightedAsync (string conversationId) |
Marks a conversation as highlighted asynchronously. More... | |
ModmailConversationContainer | RemoveHighlight (string conversationId) |
Removes a highlight from a conversation. More... | |
async Task< ModmailConversationContainer > | RemoveHighlightAsync (string conversationId) |
Removes a highlight from a conversation asynchronously. More... | |
ModmailConversationContainer | Mute (string conversationId) |
Mutes the non-mod user associated with a particular conversation. More... | |
async Task< ModmailConversationContainer > | MuteAsync (string conversationId) |
Mutes the non-mod user associated with a particular conversation asynchronously. More... | |
ModmailConversationContainer | Unmute (string conversationId) |
Unmutes the non-mod user associated with a particular conversation. More... | |
async Task< ModmailConversationContainer > | UnmuteAsync (string conversationId) |
Unmutes the non-mod user associated with a particular conversation asynchronously. More... | |
ModmailUser | UserHistory (string conversationId) |
Returns recent posts, comments and modmail conversations for the user that started this conversation. More... | |
void | MarkRead (string conversationIds) |
Marks conversations as read for the user. More... | |
async Task | MarkReadAsync (string conversationIds) |
Marks conversations as read for the user asynchronously. More... | |
void | MarkUnread (string conversationIds) |
Marks conversations as unread for the user. More... | |
async Task | MarkUnreadAsync (string conversationIds) |
Marks conversations as unread for the user asynchronously. More... | |
ModmailSubredditContainer | Subreddits () |
Returns a list of srs that the user moderates that are also enrolled in the new modmail. More... | |
ModmailUnreadCount | GetUnreadCount () |
Endpoint to retrieve the unread conversation count by conversation state. More... | |
bool | MonitorRecent (int? monitoringDelayMs=null, int? monitoringBaseDelayMs=null, List< MonitoringSchedule > schedule=null, bool? breakOnFailure=null, DateTime? monitoringExpiration=null, bool useCache=true) |
Monitor recent modmail messages as they arrive. More... | |
bool | MonitorMod (int? monitoringDelayMs=null, int? monitoringBaseDelayMs=null, List< MonitoringSchedule > schedule=null, bool? breakOnFailure=null, DateTime? monitoringExpiration=null, bool useCache=true) |
Monitor mod modmail messages as they arrive. More... | |
bool | MonitorUser (int? monitoringDelayMs=null, int? monitoringBaseDelayMs=null, List< MonitoringSchedule > schedule=null, bool? breakOnFailure=null, DateTime? monitoringExpiration=null, bool useCache=true) |
Monitor user modmail messages as they arrive. More... | |
bool | MonitorUnread (int? monitoringDelayMs=null, int? monitoringBaseDelayMs=null, List< MonitoringSchedule > schedule=null, bool? breakOnFailure=null, DateTime? monitoringExpiration=null, bool useCache=true) |
Monitor unread modmail messages as they arrive. More... | |
bool | ModmailMessagesRecentIsMonitored () |
Whether recent is being monitored. More... | |
bool | ModmailMessagesModIsMonitored () |
Whether mod is being monitored. More... | |
bool | ModmailMessagesUserIsMonitored () |
Whether user is being monitored. More... | |
bool | ModmailMessagesUnreadIsMonitored () |
Whether unread is being monitored. More... | |
![]() | |
Monitors () | |
void | Wait (int ms) |
bool | IsMonitored (string key, string subKey) |
bool | IsScheduled () |
void | WaitOrDie (string key, int timeout=60) |
void | WaitOrDie (Thread thread, int timeout=60) |
void | KillAllMonitoringThreads () |
![]() | |
BaseController () | |
Create a new Controller instance. More... | |
![]() | |
Exception | BuildException (Exception ex, List< List< string >> errors) |
dynamic | Validate (dynamic obj) |
GenericContainer | Validate (GenericContainer genericContainer) |
Generic | Validate (Generic generic) |
DynamicShortListingContainer | Validate (DynamicShortListingContainer dynamicShortListingContainer) |
DynamicShortListingData | Validate (DynamicShortListingData dynamicShortListingData) |
ImageUploadResult | Validate (ImageUploadResult imageUploadResult) |
LiveUpdateEventContainer | Validate (LiveUpdateEventContainer liveUpdateEventContainer) |
LiveThreadCreateResultContainer | Validate (LiveThreadCreateResultContainer liveThreadCreateResultContainer) |
LiveUpdateContainer | Validate (LiveUpdateContainer liveUpdateContainer, int? minChildren=null) |
SubredditSettingsContainer | Validate (SubredditSettingsContainer subredditSettingsContainer) |
SubredditSettings | Validate (SubredditSettings subredditSettings) |
List< ActionResult > | Validate (List< ActionResult > actionResults) |
ActionResult | Validate (ActionResult actionResult) |
FlairListResultContainer | Validate (FlairListResultContainer flairListResultContainer) |
Flair | Validate (Flair flair) |
FlairV2 | Validate (FlairV2 flairV2) |
ModActionContainer | Validate (ModActionContainer modActionContainer) |
ModActionData | Validate (ModActionData modActionData) |
WikiPageRevisionContainer | Validate (WikiPageRevisionContainer wikiPageRevisionContainer) |
WikiPageRevisionData | Validate (WikiPageRevisionData wikiPageRevisionData) |
WikiPageSettingsContainer | Validate (WikiPageSettingsContainer wikiPageSettingsContainer) |
WikiPageSettings | Validate (WikiPageSettings wikiPageSettings) |
List< UserPrefsContainer > | Validate (List< UserPrefsContainer > userPrefsContainers) |
UserPrefsContainer | Validate (UserPrefsContainer userPrefsContainer) |
UserPrefsData | Validate (UserPrefsData userPrefsData) |
PostResultShortContainer | Validate (PostResultShortContainer postResultShortContainer) |
PostResultShort | Validate (PostResultShort postResultShort) |
PostResultContainer | Validate (PostResultContainer postResultContainer) |
PostResult | Validate (PostResult postResult) |
JQueryReturn | Validate (JQueryReturn jQueryReturn) |
List<(PostContainer, CommentContainer)> | Validate (List<(PostContainer, CommentContainer)> ps) |
CommentResultContainer | Validate (CommentResultContainer commentResultContainer) |
SubredditContainer | Validate (SubredditContainer subredditContainer) |
Protected Member Functions | |
virtual void | OnRecentUpdated (ModmailConversationsEventArgs e) |
Invoke monitoring event for recent. More... | |
virtual void | OnModUpdated (ModmailConversationsEventArgs e) |
Invoke monitoring event for mod. More... | |
virtual void | OnUserUpdated (ModmailConversationsEventArgs e) |
Invoke monitoring event for user. More... | |
virtual void | OnUnreadUpdated (ModmailConversationsEventArgs e) |
Invoke monitoring event for unread. More... | |
void | TriggerUpdate (ModmailConversationsEventArgs args, string type) |
Invoke the appropriate event for the given type. More... | |
override Thread | CreateMonitoringThread (string key, string subKey, int startDelayMs=0, int? monitoringDelayMs=null) |
Creates a new monitoring thread. More... | |
![]() | |
bool | Monitor (string key, Thread thread, string subKey) |
void | RebuildThreads (string subKey) |
void | LaunchThreadIfNotNull (string key, Thread thread) |
void | KillThread (Thread thread) |
void | KillThread (string key) |
void | ResetThreads (List< string > oldThreads) |
![]() | |
void | CheckErrors (List< List< string >> errors) |
void | CheckErrors (List< string > errors) |
void | CheckNull (object res, string msg="Reddit API returned null response.") |
Properties | |
ConversationContainer? | Recent [get] |
Recent modmail conversations. More... | |
ConversationContainer? | Mod [get] |
Mod modmail conversations. More... | |
ConversationContainer? | User [get] |
User modmail conversations. More... | |
ConversationContainer? | Unread [get] |
Unread modmail conversations. More... | |
ModmailUnreadCount? | UnreadCount [get] |
Unread messages count. More... | |
![]() | |
IDictionary< string, HashSet< string > > | MonitoringCache [get, set] |
An optional cache for preventing the same post from appearing multiple times during monitoring. See: https://github.com/sirkris/Reddit.NET/issues/117#issuecomment-759501039 More... | |
![]() | |
Lists | Lists [get, set] |
List-handling. More... | |
Events | |
EventHandler< ModmailConversationsEventArgs > | RecentUpdated |
Event handler for monitoring modmail (recent set). More... | |
EventHandler< ModmailConversationsEventArgs > | ModUpdated |
Event handler for monitoring modmail (mod set). More... | |
EventHandler< ModmailConversationsEventArgs > | UserUpdated |
Event handler for monitoring modmail (user set). More... | |
EventHandler< ModmailConversationsEventArgs > | UnreadUpdated |
Event handler for monitoring modmail (unread set). More... | |
Additional Inherited Members | |
![]() | |
int | MonitoringWaitDelayMS = 1500 |
![]() | |
volatile bool | Terminate = false |
Controller class for modmail.
Reddit.Controllers.Modmail.Modmail | ( | Dispatch | dispatch | ) |
Create a new instance of the modmail controller.
dispatch |
int Reddit.Controllers.Modmail.Count | ( | bool | useRecent = true , |
bool | useMod = true , |
||
bool | useUser = true , |
||
bool | useUnread = true |
||
) |
Count the number of conversations.
useRecent | Count recent conversations. |
useMod | Count Mod conversations. |
useUser | Count User conversations. |
useUnread | Count Unread conversations. |
|
protectedvirtual |
Creates a new monitoring thread.
key | Monitoring key |
subKey | Monitoring subKey |
startDelayMs | How long to wait before starting the thread in milliseconds (default: 0) |
monitoringDelayMs | How long to wait between monitoring queries; pass null to leave it auto-managed (default: null) |
Implements Reddit.Controllers.Internal.Monitors.
ModmailConversationContainer Reddit.Controllers.Modmail.GetConversation | ( | string | conversationId, |
bool | markRead = false |
||
) |
Returns all messages, mod actions and conversation metadata for a given conversation id.
conversationId | base36 modmail conversation id |
markRead | boolean value |
ConversationContainer Reddit.Controllers.Modmail.GetConversations | ( | ModmailGetConversationsInput | modmailGetConversationsInput | ) |
Get conversations for a logged in user or subreddits.
modmailGetConversationsInput | A valid ModmailGetConversationsInput instance |
ConversationContainer Reddit.Controllers.Modmail.GetConversations | ( | string | after = "" , |
string | entity = "" , |
||
string | sort = "unread" , |
||
string | state = "all" , |
||
int | limit = 25 |
||
) |
Get conversations for a logged in user or subreddits.
after | base36 modmail conversation id |
entity | comma-delimited list of subreddit names |
sort | one of (recent, mod, user, unread) |
state | one of (new, inprogress, mod, notifications, archived, highlighted, all) |
limit | an integer (default: 25) |
ConversationContainer Reddit.Controllers.Modmail.GetModConversations | ( | ModmailGetConversationsInput | modmailGetConversationsInput | ) |
Get mod conversations for a logged in user or subreddits.
modmailGetConversationsInput | A valid ModmailGetConversationsInput instance |
ConversationContainer Reddit.Controllers.Modmail.GetModConversations | ( | string | after = "" , |
string | entity = "" , |
||
string | state = "all" , |
||
int | limit = 25 |
||
) |
Get mod conversations for a logged in user or subreddits.
after | base36 modmail conversation id |
entity | comma-delimited list of subreddit names |
state | one of (new, inprogress, mod, notifications, archived, highlighted, all) |
limit | an integer (default: 25) |
ConversationContainer Reddit.Controllers.Modmail.GetRecentConversations | ( | ModmailGetConversationsInput | modmailGetConversationsInput | ) |
Get recent conversations for a logged in user or subreddits.
modmailGetConversationsInput | A valid ModmailGetConversationsInput instance |
ConversationContainer Reddit.Controllers.Modmail.GetRecentConversations | ( | string | after = "" , |
string | entity = "" , |
||
string | state = "all" , |
||
int | limit = 25 |
||
) |
Get recent conversations for a logged in user or subreddits.
after | base36 modmail conversation id |
entity | comma-delimited list of subreddit names |
state | one of (new, inprogress, mod, notifications, archived, highlighted, all) |
limit | an integer (default: 25) |
ConversationContainer Reddit.Controllers.Modmail.GetUnreadConversations | ( | ModmailGetConversationsInput | modmailGetConversationsInput | ) |
Get user conversations for a logged in user or subreddits.
modmailGetConversationsInput | A valid ModmailGetConversationsInput instance |
ConversationContainer Reddit.Controllers.Modmail.GetUnreadConversations | ( | string | after = "" , |
string | entity = "" , |
||
string | state = "all" , |
||
int | limit = 25 |
||
) |
Get unread conversations for a logged in user or subreddits.
after | base36 modmail conversation id |
entity | comma-delimited list of subreddit names |
state | one of (new, inprogress, mod, notifications, archived, highlighted, all) |
limit | an integer (default: 25) |
ModmailUnreadCount Reddit.Controllers.Modmail.GetUnreadCount | ( | ) |
Endpoint to retrieve the unread conversation count by conversation state.
ConversationContainer Reddit.Controllers.Modmail.GetUserConversations | ( | ModmailGetConversationsInput | modmailGetConversationsInput | ) |
Get user conversations for a logged in user or subreddits.
modmailGetConversationsInput | A valid ModmailGetConversationsInput instance |
ConversationContainer Reddit.Controllers.Modmail.GetUserConversations | ( | string | after = "" , |
string | entity = "" , |
||
string | state = "all" , |
||
int | limit = 25 |
||
) |
Get user conversations for a logged in user or subreddits.
after | base36 modmail conversation id |
entity | comma-delimited list of subreddit names |
state | one of (new, inprogress, mod, notifications, archived, highlighted, all) |
limit | an integer (default: 25) |
ModmailConversationContainer Reddit.Controllers.Modmail.MarkHighlighted | ( | string | conversationId | ) |
Marks a conversation as highlighted.
conversationId | base36 modmail conversation id |
async Task<ModmailConversationContainer> Reddit.Controllers.Modmail.MarkHighlightedAsync | ( | string | conversationId | ) |
Marks a conversation as highlighted asynchronously.
conversationId | base36 modmail conversation id |
void Reddit.Controllers.Modmail.MarkRead | ( | string | conversationIds | ) |
Marks conversations as read for the user.
conversationIds | A comma-separated list of items |
async Task Reddit.Controllers.Modmail.MarkReadAsync | ( | string | conversationIds | ) |
Marks conversations as read for the user asynchronously.
conversationIds | A comma-separated list of items |
void Reddit.Controllers.Modmail.MarkUnread | ( | string | conversationIds | ) |
Marks conversations as unread for the user.
conversationIds | A comma-separated list of items |
async Task Reddit.Controllers.Modmail.MarkUnreadAsync | ( | string | conversationIds | ) |
Marks conversations as unread for the user asynchronously.
conversationIds | A comma-separated list of items |
bool Reddit.Controllers.Modmail.ModmailMessagesModIsMonitored | ( | ) |
Whether mod is being monitored.
bool Reddit.Controllers.Modmail.ModmailMessagesRecentIsMonitored | ( | ) |
Whether recent is being monitored.
bool Reddit.Controllers.Modmail.ModmailMessagesUnreadIsMonitored | ( | ) |
Whether unread is being monitored.
bool Reddit.Controllers.Modmail.ModmailMessagesUserIsMonitored | ( | ) |
Whether user is being monitored.
bool Reddit.Controllers.Modmail.MonitorMod | ( | int? | monitoringDelayMs = null , |
int? | monitoringBaseDelayMs = null , |
||
List< MonitoringSchedule > | schedule = null , |
||
bool? | breakOnFailure = null , |
||
DateTime? | monitoringExpiration = null , |
||
bool | useCache = true |
||
) |
Monitor mod modmail messages as they arrive.
monitoringDelayMs | The number of milliseconds between each monitoring query; leave null to auto-manage |
monitoringBaseDelayMs | The number of milliseconds between each monitoring query PER THREAD (default: 1500) |
schedule | A list of one or more timeframes during which monitoring of this object will occur (default: 24/7) |
breakOnFailure | If true, an exception will be thrown when a monitoring query fails; leave null to keep current setting (default: false) |
monitoringExpiration | If set, monitoring will automatically stop after the specified DateTime is reached |
useCache | Whether to cache the IDs of the monitoring results to prevent duplicate fires (default: true) |
bool Reddit.Controllers.Modmail.MonitorRecent | ( | int? | monitoringDelayMs = null , |
int? | monitoringBaseDelayMs = null , |
||
List< MonitoringSchedule > | schedule = null , |
||
bool? | breakOnFailure = null , |
||
DateTime? | monitoringExpiration = null , |
||
bool | useCache = true |
||
) |
Monitor recent modmail messages as they arrive.
monitoringDelayMs | The number of milliseconds between each monitoring query; leave null to auto-manage |
monitoringBaseDelayMs | The number of milliseconds between each monitoring query PER THREAD (default: 1500) |
schedule | A list of one or more timeframes during which monitoring of this object will occur (default: 24/7) |
breakOnFailure | If true, an exception will be thrown when a monitoring query fails; leave null to keep current setting (default: false) |
monitoringExpiration | If set, monitoring will automatically stop after the specified DateTime is reached |
useCache | Whether to cache the IDs of the monitoring results to prevent duplicate fires (default: true) |
bool Reddit.Controllers.Modmail.MonitorUnread | ( | int? | monitoringDelayMs = null , |
int? | monitoringBaseDelayMs = null , |
||
List< MonitoringSchedule > | schedule = null , |
||
bool? | breakOnFailure = null , |
||
DateTime? | monitoringExpiration = null , |
||
bool | useCache = true |
||
) |
Monitor unread modmail messages as they arrive.
monitoringDelayMs | The number of milliseconds between each monitoring query; leave null to auto-manage |
monitoringBaseDelayMs | The number of milliseconds between each monitoring query PER THREAD (default: 1500) |
schedule | A list of one or more timeframes during which monitoring of this object will occur (default: 24/7) |
breakOnFailure | If true, an exception will be thrown when a monitoring query fails; leave null to keep current setting (default: false) |
monitoringExpiration | If set, monitoring will automatically stop after the specified DateTime is reached |
useCache | Whether to cache the IDs of the monitoring results to prevent duplicate fires (default: true) |
bool Reddit.Controllers.Modmail.MonitorUser | ( | int? | monitoringDelayMs = null , |
int? | monitoringBaseDelayMs = null , |
||
List< MonitoringSchedule > | schedule = null , |
||
bool? | breakOnFailure = null , |
||
DateTime? | monitoringExpiration = null , |
||
bool | useCache = true |
||
) |
Monitor user modmail messages as they arrive.
monitoringDelayMs | The number of milliseconds between each monitoring query; leave null to auto-manage |
monitoringBaseDelayMs | The number of milliseconds between each monitoring query PER THREAD (default: 1500) |
schedule | A list of one or more timeframes during which monitoring of this object will occur (default: 24/7) |
breakOnFailure | If true, an exception will be thrown when a monitoring query fails; leave null to keep current setting (default: false) |
monitoringExpiration | If set, monitoring will automatically stop after the specified DateTime is reached |
useCache | Whether to cache the IDs of the monitoring results to prevent duplicate fires (default: true) |
ModmailConversationContainer Reddit.Controllers.Modmail.Mute | ( | string | conversationId | ) |
Mutes the non-mod user associated with a particular conversation.
conversationId | base36 modmail conversation id |
async Task<ModmailConversationContainer> Reddit.Controllers.Modmail.MuteAsync | ( | string | conversationId | ) |
Mutes the non-mod user associated with a particular conversation asynchronously.
conversationId | base36 modmail conversation id |
ModmailConversationContainer Reddit.Controllers.Modmail.NewConversation | ( | ModmailNewConversationInput | modmailNewConversationInput, |
string | gRecaptchaResponse = "" |
||
) |
Creates a new conversation for a particular SR. This endpoint will create a ModmailConversation object as well as the first ModmailMessage within the ModmailConversation object.
modmailNewConversationInput | A valid ModmailNewConversationInput instance |
gRecaptchaResponse |
ModmailConversationContainer Reddit.Controllers.Modmail.NewConversation | ( | string | body = "" , |
string | subject = "" , |
||
string | srName = "" , |
||
string | to = "" , |
||
bool | isAuthorHidden = false |
||
) |
Creates a new conversation for a particular SR. This endpoint will create a ModmailConversation object as well as the first ModmailMessage within the ModmailConversation object.
body | raw markdown text |
subject | a string no longer than 100 characters |
to | Modmail conversation recipient username |
isAuthorHidden | boolean value |
srName | subreddit name |
async Task<ModmailConversationContainer> Reddit.Controllers.Modmail.NewConversationAsync | ( | ModmailNewConversationInput | modmailNewConversationInput | ) |
Creates a new conversation for a particular SR asynchronously. This endpoint will create a ModmailConversation object as well as the first ModmailMessage within the ModmailConversation object.
modmailNewConversationInput | A valid ModmailNewConversationInput instance |
async Task<ModmailConversationContainer> Reddit.Controllers.Modmail.NewConversationAsync | ( | string | body = "" , |
string | subject = "" , |
||
string | srName = "" , |
||
string | to = "" , |
||
bool | isAuthorHidden = false |
||
) |
Creates a new conversation for a particular SR asynchronously. This endpoint will create a ModmailConversation object as well as the first ModmailMessage within the ModmailConversation object.
body | raw markdown text |
subject | a string no longer than 100 characters |
to | Modmail conversation recipient username |
isAuthorHidden | boolean value |
srName | subreddit name |
ModmailConversationContainer Reddit.Controllers.Modmail.NewMessage | ( | string | conversationId, |
ModmailNewMessageInput | modmailNewMessageInput | ||
) |
Creates a new message for a particular conversation.
conversationId | base36 modmail conversation id |
modmailNewMessageInput | A valid ModmailNewMessageInput instance |
ModmailConversationContainer Reddit.Controllers.Modmail.NewMessage | ( | string | conversationId, |
string | body = "" , |
||
bool | isAuthorHidden = false , |
||
bool | isInternal = false |
||
) |
Creates a new message for a particular conversation.
conversationId | base36 modmail conversation id |
body | raw markdown text |
isAuthorHidden | boolean value |
isInternal | boolean value |
async Task<ModmailConversationContainer> Reddit.Controllers.Modmail.NewMessageAsync | ( | string | conversationId, |
ModmailNewMessageInput | modmailNewMessageInput | ||
) |
Creates a new message for a particular conversation asynchronously.
conversationId | base36 modmail conversation id |
modmailNewMessageInput | A valid ModmailNewMessageInput instance |
async Task<ModmailConversationContainer> Reddit.Controllers.Modmail.NewMessageAsync | ( | string | conversationId, |
string | body = "" , |
||
bool | isAuthorHidden = false , |
||
bool | isInternal = false |
||
) |
Creates a new message for a particular conversation asynchronously.
conversationId | base36 modmail conversation id |
body | raw markdown text |
isAuthorHidden | boolean value |
isInternal | boolean value |
|
protectedvirtual |
Invoke monitoring event for mod.
e | A valid ModmailConversationsEventArgs instance |
|
protectedvirtual |
Invoke monitoring event for recent.
e | A valid ModmailConversationsEventArgs instance |
|
protectedvirtual |
Invoke monitoring event for unread.
e | A valid ModmailConversationsEventArgs instance |
|
protectedvirtual |
Invoke monitoring event for user.
e | A valid ModmailConversationsEventArgs instance |
ModmailConversationContainer Reddit.Controllers.Modmail.RemoveHighlight | ( | string | conversationId | ) |
Removes a highlight from a conversation.
conversationId | base36 modmail conversation id |
async Task<ModmailConversationContainer> Reddit.Controllers.Modmail.RemoveHighlightAsync | ( | string | conversationId | ) |
Removes a highlight from a conversation asynchronously.
conversationId | base36 modmail conversation id |
ModmailSubredditContainer Reddit.Controllers.Modmail.Subreddits | ( | ) |
Returns a list of srs that the user moderates that are also enrolled in the new modmail.
|
protected |
Invoke the appropriate event for the given type.
args | A valid ModmailConversationsEventArgs instance |
type | One of: (recent, mod, user, unread) |
ModmailConversationContainer Reddit.Controllers.Modmail.Unmute | ( | string | conversationId | ) |
Unmutes the non-mod user associated with a particular conversation.
conversationId | base36 modmail conversation id |
async Task<ModmailConversationContainer> Reddit.Controllers.Modmail.UnmuteAsync | ( | string | conversationId | ) |
Unmutes the non-mod user associated with a particular conversation asynchronously.
conversationId | base36 modmail conversation id |
ModmailUser Reddit.Controllers.Modmail.UserHistory | ( | string | conversationId | ) |
Returns recent posts, comments and modmail conversations for the user that started this conversation.
conversationId | base36 modmail conversation id |
|
get |
Mod modmail conversations.
|
get |
Recent modmail conversations.
|
get |
Unread modmail conversations.
|
get |
Unread messages count.
|
get |
User modmail conversations.
EventHandler<ModmailConversationsEventArgs> Reddit.Controllers.Modmail.ModUpdated |
Event handler for monitoring modmail (mod set).
EventHandler<ModmailConversationsEventArgs> Reddit.Controllers.Modmail.RecentUpdated |
Event handler for monitoring modmail (recent set).
EventHandler<ModmailConversationsEventArgs> Reddit.Controllers.Modmail.UnreadUpdated |
Event handler for monitoring modmail (unread set).
EventHandler<ModmailConversationsEventArgs> Reddit.Controllers.Modmail.UserUpdated |
Event handler for monitoring modmail (user set).