/// <summary> /// Get user conversations for a logged in user or subreddits. /// </summary> /// <param name="modmailGetConversationsInput">A valid ModmailGetConversationsInput instance</param> /// <returns>The requested conversations.</returns> public ConversationContainer GetUnreadConversations(ModmailGetConversationsInput modmailGetConversationsInput) { modmailGetConversationsInput.sort = "unread"; Unread = GetConversations(modmailGetConversationsInput); UnreadLastUpdated = DateTime.Now; return(Unread); }
/// <summary> /// Get user conversations for a logged in user or subreddits. /// </summary> /// <param name="modmailGetConversationsInput">A valid ModmailGetConversationsInput instance</param> /// <returns>The requested conversations.</returns> public ConversationContainer GetUserConversations(ModmailGetConversationsInput modmailGetConversationsInput) { modmailGetConversationsInput.sort = "user"; User = GetConversations(modmailGetConversationsInput); UserLastUpdated = DateTime.Now; return(User); }
/// <summary> /// Get mod conversations for a logged in user or subreddits. /// </summary> /// <param name="modmailGetConversationsInput">A valid ModmailGetConversationsInput instance</param> /// <returns>The requested conversations.</returns> public ConversationContainer GetModConversations(ModmailGetConversationsInput modmailGetConversationsInput) { modmailGetConversationsInput.sort = "mod"; Mod = GetConversations(modmailGetConversationsInput); ModLastUpdated = DateTime.Now; return(Mod); }
/// <summary> /// Get recent conversations for a logged in user or subreddits. /// </summary> /// <param name="modmailGetConversationsInput">A valid ModmailGetConversationsInput instance</param> /// <returns>The requested conversations.</returns> public ConversationContainer GetRecentConversations(ModmailGetConversationsInput modmailGetConversationsInput) { modmailGetConversationsInput.sort = "recent"; Recent = GetConversations(modmailGetConversationsInput); RecentLastUpdated = DateTime.Now; return(Recent); }
/// <summary> /// Get conversations for a logged in user or subreddits. /// </summary> /// <param name="modmailGetConversationsInput">A valid ModmailGetConversationsInput instance</param> /// <returns>The requested conversations.</returns> public ConversationContainer GetConversations(ModmailGetConversationsInput modmailGetConversationsInput) { return(Validate(Dispatch.Modmail.GetConversations(modmailGetConversationsInput))); }
/// <summary> /// Get conversations for a logged in user or subreddits. /// </summary> /// <param name="modmailGetConversationsInput">A valid ModmailGetConversationsInput instance</param> /// <returns>The requested conversations.</returns> public ConversationContainer GetConversations(ModmailGetConversationsInput modmailGetConversationsInput) { return(SendRequest <ConversationContainer>("api/mod/conversations", modmailGetConversationsInput)); }