File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -43,15 +43,16 @@ public class Thing : RedditObject
43
43
/// </summary>
44
44
public TimeSpan TimeSinceFetch => DateTime . Now - FetchedAt ;
45
45
46
- private JToken RawJson { get ; set ; }
46
+ public JToken RawJson { get ; private set ; }
47
47
48
48
/// <summary>
49
- /// Gets a property of this Thing, without any automatic conversion.
49
+ /// Gets a property of this Thing without any automatic conversion,
50
+ /// even to a <see cref="String"/>.
50
51
/// </summary>
51
52
/// <param name="property">The reddit API name of the property</param>
52
53
/// <returns>The property's value as a <see cref="String"/> or null if the property
53
54
/// doesn't exist or is null.</returns>
54
- public String this [ String property ] => RawJson [ property ] . ValueOrDefault < string > ( ) ;
55
+ public JToken this [ String property ] => RawJson [ property ] ;
55
56
#endregion
56
57
57
58
You can’t perform that action at this time.
0 commit comments