![]() |
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 comment replies. More...
Public Member Functions | |
Comments (Dispatch dispatch, string postId=null, string subreddit=null, Comment comment=null, List< Comment > confidence=null, List< Comment > top=null, List< Comment > newComments=null, List< Comment > controversial=null, List< Comment > old=null, List< Comment > random=null, List< Comment > qa=null, List< Comment > live=null) | |
Create a new instance of the comments controller. More... | |
List< Comment > | GetComments (string sort="new", int context=3, int truncate=0, bool showEdits=false, bool showMore=true, bool threaded=true, int? depth=null, int? limit=null, bool srDetail=false, bool isInterface=false) |
Retrieve comment replies to this comment. More... | |
List< Comment > | GetConfidence (int context=3, int truncate=0, bool showEdits=false, bool showMore=true, bool threaded=true, int? depth=null, int? limit=null, bool srDetail=false, bool isInterface=false) |
Retrieve a list of comments using "confidence" sort. More... | |
List< Comment > | GetTop (int context=3, int truncate=0, bool showEdits=false, bool showMore=true, bool threaded=true, int? depth=null, int? limit=null, bool srDetail=false, bool isInterface=false) |
Retrieve a list of comments using "top" sort. More... | |
List< Comment > | GetNew (int context=3, int truncate=0, bool showEdits=false, bool showMore=true, bool threaded=true, int? depth=null, int? limit=null, bool srDetail=false, bool isInterface=false) |
Retrieve a list of comments using "new" sort. More... | |
List< Comment > | GetControversial (int context=3, int truncate=0, bool showEdits=false, bool showMore=true, bool threaded=true, int? depth=null, int? limit=null, bool srDetail=false, bool isInterface=false) |
Retrieve a list of comments using "controversial" sort. More... | |
List< Comment > | GetOld (int context=3, int truncate=0, bool showEdits=false, bool showMore=true, bool threaded=true, int? depth=null, int? limit=null, bool srDetail=false, bool isInterface=false) |
Retrieve a list of comments using "old" sort. More... | |
List< Comment > | GetRandom (int context=3, int truncate=0, bool showEdits=false, bool showMore=true, bool threaded=true, int? depth=null, int? limit=null, bool srDetail=false, bool isInterface=false) |
Retrieve a list of comments using "random" sort. More... | |
List< Comment > | GetQA (int context=3, int truncate=0, bool showEdits=false, bool showMore=true, bool threaded=true, int? depth=null, int? limit=null, bool srDetail=false, bool isInterface=false) |
Retrieve a list of comments using "qa" sort. More... | |
List< Comment > | GetLive (int context=3, int truncate=0, bool showEdits=false, bool showMore=true, bool threaded=true, int? depth=null, int? limit=null, bool srDetail=false, bool isInterface=false) |
Retrieve a list of comments using "live" sort. More... | |
bool | MonitorConfidence (int? monitoringDelayMs=null, int? monitoringBaseDelayMs=null, List< MonitoringSchedule > schedule=null, bool? breakOnFailure=null, DateTime? monitoringExpiration=null, bool useCache=true) |
Monitor Reddit for new "confidence" comments on this thread. More... | |
bool | MonitorTop (int? monitoringDelayMs=null, int? monitoringBaseDelayMs=null, List< MonitoringSchedule > schedule=null, bool? breakOnFailure=null, DateTime? monitoringExpiration=null, bool useCache=true) |
Monitor Reddit for new "top" comments on this thread. More... | |
bool | MonitorNew (int? monitoringDelayMs=null, int? monitoringBaseDelayMs=null, List< MonitoringSchedule > schedule=null, bool? breakOnFailure=null, DateTime? monitoringExpiration=null, bool useCache=true) |
Monitor Reddit for new "new" comments on this thread. More... | |
bool | MonitorControversial (int? monitoringDelayMs=null, int? monitoringBaseDelayMs=null, List< MonitoringSchedule > schedule=null, bool? breakOnFailure=null, DateTime? monitoringExpiration=null, bool useCache=true) |
Monitor Reddit for new "controversial" comments on this thread. More... | |
bool | MonitorOld (int? monitoringDelayMs=null, int? monitoringBaseDelayMs=null, List< MonitoringSchedule > schedule=null, bool? breakOnFailure=null, DateTime? monitoringExpiration=null, bool useCache=true) |
Monitor Reddit for new "old" comments on this thread. More... | |
bool | MonitorRandom (int? monitoringDelayMs=null, int? monitoringBaseDelayMs=null, List< MonitoringSchedule > schedule=null, bool? breakOnFailure=null, DateTime? monitoringExpiration=null, bool useCache=true) |
Monitor Reddit for new "random" comments on this thread. More... | |
bool | MonitorQA (int? monitoringDelayMs=null, int? monitoringBaseDelayMs=null, List< MonitoringSchedule > schedule=null, bool? breakOnFailure=null, DateTime? monitoringExpiration=null, bool useCache=true) |
Monitor Reddit for new "qa" comments on this thread. More... | |
bool | MonitorLive (int? monitoringDelayMs=null, int? monitoringBaseDelayMs=null, List< MonitoringSchedule > schedule=null, bool? breakOnFailure=null, DateTime? monitoringExpiration=null, bool useCache=true) |
Monitor Reddit for new "live" comments on this thread. More... | |
bool | ConfidenceCommentsIsMonitored () |
Whether the confidence sort is being monitored. More... | |
bool | TopCommentsIsMonitored () |
Whether the top sort is being monitored. More... | |
bool | NewCommentsIsMonitored () |
Whether the new sort is being monitored. More... | |
bool | ControversialCommentsIsMonitored () |
Whether the controversial sort is being monitored. More... | |
bool | OldCommentsIsMonitored () |
Whether the old sort is being monitored. More... | |
bool | RandomCommentsIsMonitored () |
Whether the random sort is being monitored. More... | |
bool | QACommentsIsMonitored () |
Whether the qa sort is being monitored. More... | |
bool | LiveCommentsIsMonitored () |
Whether the live sort 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 | |
void | TriggerUpdate (CommentsUpdateEventArgs 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 | |
List< Comment >? | Confidence [get] |
A list of comments using "confidence" sort. More... | |
IList< Comment >? | IConfidence [get] |
A list interface of comments using "confidence" sort. More... | |
List< Comment >? | Top [get] |
A list of comments using "top" sort. More... | |
IList< Comment >? | ITop [get] |
A list interface of comments using "top" sort. More... | |
List< Comment >? | New [get] |
A list of comments using "new" sort. More... | |
IList< Comment >? | INew [get] |
A list interface of comments using "new" sort. More... | |
List< Comment >? | Controversial [get] |
A list of comments using "controversial" sort. More... | |
IList< Comment >? | IControversial [get] |
A list interface of comments using "controversial" sort. More... | |
List< Comment >? | Old [get] |
A list of comments using "old" sort. More... | |
IList< Comment >? | IOld [get] |
A list interface of comments using "old" sort. More... | |
List< Comment >? | Random [get] |
A list of comments using "random" sort. More... | |
IList< Comment >? | IRandom [get] |
A list interface of comments using "random" sort. More... | |
List< Comment >? | QA [get] |
A list of comments using "qa" sort. More... | |
IList< Comment >? | IQA [get] |
A list interface of comments using "qa" sort. More... | |
List< Comment >? | Live [get] |
A list of comments using "live" sort. More... | |
IList< Comment >? | ILive [get] |
A list interface of comments using "live" sort. More... | |
Comment | Comment [get] |
The parent comment (if one exists). More... | |
string | SubKey [get, set] |
Monitoring SubKey. 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< CommentsUpdateEventArgs > | ConfidenceUpdated |
Event handler for monitoring comments (confidence sort) More... | |
EventHandler< CommentsUpdateEventArgs > | TopUpdated |
Event handler for monitoring comments (top sort) More... | |
EventHandler< CommentsUpdateEventArgs > | NewUpdated |
Event handler for monitoring comments (new sort) More... | |
EventHandler< CommentsUpdateEventArgs > | ControversialUpdated |
Event handler for monitoring comments (controversial sort) More... | |
EventHandler< CommentsUpdateEventArgs > | OldUpdated |
Event handler for monitoring comments (old sort) More... | |
EventHandler< CommentsUpdateEventArgs > | RandomUpdated |
Event handler for monitoring comments (random sort) More... | |
EventHandler< CommentsUpdateEventArgs > | QAUpdated |
Event handler for monitoring comments (qa sort) More... | |
EventHandler< CommentsUpdateEventArgs > | LiveUpdated |
Event handler for monitoring comments (live sort) More... | |
Additional Inherited Members | |
![]() | |
int | MonitoringWaitDelayMS = 1500 |
![]() | |
volatile bool | Terminate = false |
Controller class for comment replies.
Reddit.Controllers.Comments.Comments | ( | Dispatch | dispatch, |
string | postId = null , |
||
string | subreddit = null , |
||
Comment | comment = null , |
||
List< Comment > | confidence = null , |
||
List< Comment > | top = null , |
||
List< Comment > | newComments = null , |
||
List< Comment > | controversial = null , |
||
List< Comment > | old = null , |
||
List< Comment > | random = null , |
||
List< Comment > | qa = null , |
||
List< Comment > | live = null |
||
) |
Create a new instance of the comments controller.
dispatch | |
postId | The ID36 of the parent post |
subreddit | The name of the parent subreddit |
comment | The parent comment instance |
confidence | |
top | |
newComments | |
controversial | |
old | |
random | |
qa | |
live |
bool Reddit.Controllers.Comments.ConfidenceCommentsIsMonitored | ( | ) |
Whether the confidence sort is being monitored.
bool Reddit.Controllers.Comments.ControversialCommentsIsMonitored | ( | ) |
Whether the controversial sort is being monitored.
|
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.
List<Comment> Reddit.Controllers.Comments.GetComments | ( | string | sort = "new" , |
int | context = 3 , |
||
int | truncate = 0 , |
||
bool | showEdits = false , |
||
bool | showMore = true , |
||
bool | threaded = true , |
||
int? | depth = null , |
||
int? | limit = null , |
||
bool | srDetail = false , |
||
bool | isInterface = false |
||
) |
Retrieve comment replies to this comment.
sort | one of (confidence, top, new, controversial, old, random, qa, live) |
context | an integer between 0 and 8 |
truncate | an integer between 0 and 50 |
showEdits | boolean value |
showMore | boolean value |
threaded | boolean value |
depth | (optional) an integer |
limit | (optional) an integer |
srDetail | (optional) expand subreddits |
isInterface | (optional) whether to store the result cache in the interface |
List<Comment> Reddit.Controllers.Comments.GetConfidence | ( | int | context = 3 , |
int | truncate = 0 , |
||
bool | showEdits = false , |
||
bool | showMore = true , |
||
bool | threaded = true , |
||
int? | depth = null , |
||
int? | limit = null , |
||
bool | srDetail = false , |
||
bool | isInterface = false |
||
) |
Retrieve a list of comments using "confidence" sort.
context | an integer between 0 and 8 |
truncate | an integer between 0 and 50 |
showEdits | boolean value |
showMore | boolean value |
threaded | boolean value |
depth | (optional) an integer |
limit | (optional) an integer |
srDetail | (optional) expand subreddits |
isInterface | (optional) whether to store the result cache in the interface |
List<Comment> Reddit.Controllers.Comments.GetControversial | ( | int | context = 3 , |
int | truncate = 0 , |
||
bool | showEdits = false , |
||
bool | showMore = true , |
||
bool | threaded = true , |
||
int? | depth = null , |
||
int? | limit = null , |
||
bool | srDetail = false , |
||
bool | isInterface = false |
||
) |
Retrieve a list of comments using "controversial" sort.
context | an integer between 0 and 8 |
truncate | an integer between 0 and 50 |
showEdits | boolean value |
showMore | boolean value |
threaded | boolean value |
depth | (optional) an integer |
limit | (optional) an integer |
srDetail | (optional) expand subreddits |
isInterface | (optional) whether to store the result cache in the interface |
List<Comment> Reddit.Controllers.Comments.GetLive | ( | int | context = 3 , |
int | truncate = 0 , |
||
bool | showEdits = false , |
||
bool | showMore = true , |
||
bool | threaded = true , |
||
int? | depth = null , |
||
int? | limit = null , |
||
bool | srDetail = false , |
||
bool | isInterface = false |
||
) |
Retrieve a list of comments using "live" sort.
context | an integer between 0 and 8 |
truncate | an integer between 0 and 50 |
showEdits | boolean value |
showMore | boolean value |
threaded | boolean value |
depth | (optional) an integer |
limit | (optional) an integer |
srDetail | (optional) expand subreddits |
isInterface | (optional) whether to store the result cache in the interface |
List<Comment> Reddit.Controllers.Comments.GetNew | ( | int | context = 3 , |
int | truncate = 0 , |
||
bool | showEdits = false , |
||
bool | showMore = true , |
||
bool | threaded = true , |
||
int? | depth = null , |
||
int? | limit = null , |
||
bool | srDetail = false , |
||
bool | isInterface = false |
||
) |
Retrieve a list of comments using "new" sort.
context | an integer between 0 and 8 |
truncate | an integer between 0 and 50 |
showEdits | boolean value |
showMore | boolean value |
threaded | boolean value |
depth | (optional) an integer |
limit | (optional) an integer |
srDetail | (optional) expand subreddits |
isInterface | (optional) whether to store the result cache in the interface |
List<Comment> Reddit.Controllers.Comments.GetOld | ( | int | context = 3 , |
int | truncate = 0 , |
||
bool | showEdits = false , |
||
bool | showMore = true , |
||
bool | threaded = true , |
||
int? | depth = null , |
||
int? | limit = null , |
||
bool | srDetail = false , |
||
bool | isInterface = false |
||
) |
Retrieve a list of comments using "old" sort.
context | an integer between 0 and 8 |
truncate | an integer between 0 and 50 |
showEdits | boolean value |
showMore | boolean value |
threaded | boolean value |
depth | (optional) an integer |
limit | (optional) an integer |
srDetail | (optional) expand subreddits |
isInterface | (optional) whether to store the result cache in the interface |
List<Comment> Reddit.Controllers.Comments.GetQA | ( | int | context = 3 , |
int | truncate = 0 , |
||
bool | showEdits = false , |
||
bool | showMore = true , |
||
bool | threaded = true , |
||
int? | depth = null , |
||
int? | limit = null , |
||
bool | srDetail = false , |
||
bool | isInterface = false |
||
) |
Retrieve a list of comments using "qa" sort.
context | an integer between 0 and 8 |
truncate | an integer between 0 and 50 |
showEdits | boolean value |
showMore | boolean value |
threaded | boolean value |
depth | (optional) an integer |
limit | (optional) an integer |
srDetail | (optional) expand subreddits |
isInterface | (optional) whether to store the result cache in the interface |
List<Comment> Reddit.Controllers.Comments.GetRandom | ( | int | context = 3 , |
int | truncate = 0 , |
||
bool | showEdits = false , |
||
bool | showMore = true , |
||
bool | threaded = true , |
||
int? | depth = null , |
||
int? | limit = null , |
||
bool | srDetail = false , |
||
bool | isInterface = false |
||
) |
Retrieve a list of comments using "random" sort.
context | an integer between 0 and 8 |
truncate | an integer between 0 and 50 |
showEdits | boolean value |
showMore | boolean value |
threaded | boolean value |
depth | (optional) an integer |
limit | (optional) an integer |
srDetail | (optional) expand subreddits |
isInterface | (optional) whether to store the result cache in the interface |
List<Comment> Reddit.Controllers.Comments.GetTop | ( | int | context = 3 , |
int | truncate = 0 , |
||
bool | showEdits = false , |
||
bool | showMore = true , |
||
bool | threaded = true , |
||
int? | depth = null , |
||
int? | limit = null , |
||
bool | srDetail = false , |
||
bool | isInterface = false |
||
) |
Retrieve a list of comments using "top" sort.
context | an integer between 0 and 8 |
truncate | an integer between 0 and 50 |
showEdits | boolean value |
showMore | boolean value |
threaded | boolean value |
depth | (optional) an integer |
limit | (optional) an integer |
srDetail | (optional) expand subreddits |
isInterface | (optional) whether to store the result cache in the interface |
bool Reddit.Controllers.Comments.LiveCommentsIsMonitored | ( | ) |
Whether the live sort is being monitored.
bool Reddit.Controllers.Comments.MonitorConfidence | ( | int? | monitoringDelayMs = null , |
int? | monitoringBaseDelayMs = null , |
||
List< MonitoringSchedule > | schedule = null , |
||
bool? | breakOnFailure = null , |
||
DateTime? | monitoringExpiration = null , |
||
bool | useCache = true |
||
) |
Monitor Reddit for new "confidence" comments on this thread.
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.Comments.MonitorControversial | ( | int? | monitoringDelayMs = null , |
int? | monitoringBaseDelayMs = null , |
||
List< MonitoringSchedule > | schedule = null , |
||
bool? | breakOnFailure = null , |
||
DateTime? | monitoringExpiration = null , |
||
bool | useCache = true |
||
) |
Monitor Reddit for new "controversial" comments on this thread.
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.Comments.MonitorLive | ( | int? | monitoringDelayMs = null , |
int? | monitoringBaseDelayMs = null , |
||
List< MonitoringSchedule > | schedule = null , |
||
bool? | breakOnFailure = null , |
||
DateTime? | monitoringExpiration = null , |
||
bool | useCache = true |
||
) |
Monitor Reddit for new "live" comments on this thread.
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.Comments.MonitorNew | ( | int? | monitoringDelayMs = null , |
int? | monitoringBaseDelayMs = null , |
||
List< MonitoringSchedule > | schedule = null , |
||
bool? | breakOnFailure = null , |
||
DateTime? | monitoringExpiration = null , |
||
bool | useCache = true |
||
) |
Monitor Reddit for new "new" comments on this thread.
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.Comments.MonitorOld | ( | int? | monitoringDelayMs = null , |
int? | monitoringBaseDelayMs = null , |
||
List< MonitoringSchedule > | schedule = null , |
||
bool? | breakOnFailure = null , |
||
DateTime? | monitoringExpiration = null , |
||
bool | useCache = true |
||
) |
Monitor Reddit for new "old" comments on this thread.
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.Comments.MonitorQA | ( | int? | monitoringDelayMs = null , |
int? | monitoringBaseDelayMs = null , |
||
List< MonitoringSchedule > | schedule = null , |
||
bool? | breakOnFailure = null , |
||
DateTime? | monitoringExpiration = null , |
||
bool | useCache = true |
||
) |
Monitor Reddit for new "qa" comments on this thread.
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.Comments.MonitorRandom | ( | int? | monitoringDelayMs = null , |
int? | monitoringBaseDelayMs = null , |
||
List< MonitoringSchedule > | schedule = null , |
||
bool? | breakOnFailure = null , |
||
DateTime? | monitoringExpiration = null , |
||
bool | useCache = true |
||
) |
Monitor Reddit for new "random" comments on this thread.
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.Comments.MonitorTop | ( | int? | monitoringDelayMs = null , |
int? | monitoringBaseDelayMs = null , |
||
List< MonitoringSchedule > | schedule = null , |
||
bool? | breakOnFailure = null , |
||
DateTime? | monitoringExpiration = null , |
||
bool | useCache = true |
||
) |
Monitor Reddit for new "top" comments on this thread.
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.Comments.NewCommentsIsMonitored | ( | ) |
Whether the new sort is being monitored.
bool Reddit.Controllers.Comments.OldCommentsIsMonitored | ( | ) |
Whether the old sort is being monitored.
bool Reddit.Controllers.Comments.QACommentsIsMonitored | ( | ) |
Whether the qa sort is being monitored.
bool Reddit.Controllers.Comments.RandomCommentsIsMonitored | ( | ) |
Whether the random sort is being monitored.
bool Reddit.Controllers.Comments.TopCommentsIsMonitored | ( | ) |
Whether the top sort is being monitored.
|
protected |
Invoke the appropriate event for the given type.
args | A valid CommentsUpdateEventArgs instance |
type | One of: (confidence, top, new, controversial, old, random, qa, live) |
|
get |
The parent comment (if one exists).
|
get |
A list of comments using "confidence" sort.
|
get |
A list of comments using "controversial" sort.
|
get |
A list interface of comments using "confidence" sort.
|
get |
A list interface of comments using "controversial" sort.
|
get |
A list interface of comments using "live" sort.
|
get |
A list interface of comments using "new" sort.
|
get |
A list interface of comments using "old" sort.
|
get |
A list interface of comments using "qa" sort.
|
get |
A list interface of comments using "random" sort.
|
get |
A list interface of comments using "top" sort.
|
get |
A list of comments using "live" sort.
|
get |
A list of comments using "new" sort.
|
get |
A list of comments using "old" sort.
|
get |
A list of comments using "qa" sort.
|
get |
A list of comments using "random" sort.
|
getset |
Monitoring SubKey.
|
get |
A list of comments using "top" sort.
EventHandler<CommentsUpdateEventArgs> Reddit.Controllers.Comments.ConfidenceUpdated |
Event handler for monitoring comments (confidence sort)
EventHandler<CommentsUpdateEventArgs> Reddit.Controllers.Comments.ControversialUpdated |
Event handler for monitoring comments (controversial sort)
EventHandler<CommentsUpdateEventArgs> Reddit.Controllers.Comments.LiveUpdated |
Event handler for monitoring comments (live sort)
EventHandler<CommentsUpdateEventArgs> Reddit.Controllers.Comments.NewUpdated |
Event handler for monitoring comments (new sort)
EventHandler<CommentsUpdateEventArgs> Reddit.Controllers.Comments.OldUpdated |
Event handler for monitoring comments (old sort)
EventHandler<CommentsUpdateEventArgs> Reddit.Controllers.Comments.QAUpdated |
Event handler for monitoring comments (qa sort)
EventHandler<CommentsUpdateEventArgs> Reddit.Controllers.Comments.RandomUpdated |
Event handler for monitoring comments (random sort)
EventHandler<CommentsUpdateEventArgs> Reddit.Controllers.Comments.TopUpdated |
Event handler for monitoring comments (top sort)