@@ -82,12 +82,20 @@ namespace Allow2
8282 //{
8383 //}
8484
85+ /// <summary>
86+ /// Convenience method.
87+ /// </summary>
88+ /// <value>The activities.</value>
8589 public JSONNode Activities {
8690 get {
8791 return this [ "activities" ] ;
8892 }
8993 }
9094
95+ /// <summary>
96+ /// Convenience method.
97+ /// </summary>
98+ /// <value>The subscription.</value>
9199 public JSONNode Subscription
92100 {
93101 get
@@ -96,6 +104,10 @@ public JSONNode Subscription
96104 }
97105 }
98106
107+ /// <summary>
108+ /// When does the validity of this result expire? (cache expiry).
109+ /// </summary>
110+ /// <value>The expiry Date/Time</value>
99111 public DateTime Expires {
100112 get {
101113 int unixTimeStamp = ( ( Activities != null ) && ( Activities [ 0 ] != null ) ) ?
@@ -104,6 +116,10 @@ public DateTime Expires {
104116 }
105117 }
106118
119+ /// <summary>
120+ /// Returns <see langword="null"/> if the user is financial or within free usage tier, otherwise returns a message indicating they need a subscription
121+ /// </summary>
122+ /// <value>The need subscription.</value>
107123 public string NeedSubscription {
108124 get {
109125 if ( ! Subscription [ "financial" ] . AsBool ) {
@@ -123,12 +139,20 @@ public string NeedSubscription {
123139 }
124140 }
125141
142+ /// <summary>
143+ /// A simple top level result, the child is currently allowed or not based on the activity time and quotas.
144+ /// </summary>
145+ /// <value><c>true</c> if is allowed; otherwise, <c>false</c>.</value>
126146 public bool IsAllowed {
127147 get {
128148 return this [ "allowed" ] . AsBool ;
129149 }
130150 }
131151
152+ /// <summary>
153+ /// A Summary explanation of the current reasons they may not be allowed at this time.
154+ /// </summary>
155+ /// <value>The explanation.</value>
132156 public string Explanation {
133157 get {
134158 List < string > reasons = new List < string > ( ) ;
@@ -158,6 +182,10 @@ public string Explanation {
158182 }
159183 }
160184
185+ /// <summary>
186+ /// A list of the current bans in place for this child.
187+ /// </summary>
188+ /// <value>The current bans.</value>
161189 public Allow2Ban [ ] CurrentBans {
162190 get {
163191 List < Allow2Ban > bans = new List < Allow2Ban > ( ) ;
@@ -184,6 +212,10 @@ public Allow2Ban[] CurrentBans {
184212 }
185213 }
186214
215+ /// <summary>
216+ /// The type of day it is today.
217+ /// </summary>
218+ /// <value>The day type.</value>
187219 public Allow2Day Today
188220 {
189221 get
@@ -193,6 +225,10 @@ public Allow2Day Today
193225 }
194226 }
195227
228+ /// <summary>
229+ /// The type of day it will be tomorrow.
230+ /// </summary>
231+ /// <value>The day type.</value>
196232 public Allow2Day Tomorrow
197233 {
198234 get
@@ -202,6 +238,10 @@ public Allow2Day Tomorrow
202238 }
203239 }
204240
241+ /// <summary>
242+ /// All Day Types the parent has set on their account that the child should be aware of or can choose from for a request.
243+ /// </summary>
244+ /// <value>All day types.</value>
205245 public Allow2Day [ ] AllDayTypes
206246 {
207247 get
0 commit comments