You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// A client with them you could load and send untis messages
16
+
/// </summary>
17
+
/// <remarks>
18
+
/// Under no circumstances should 10 req. per sec., more than 1800req. per hr (but in no case more than 3600 req. per hr). If the specifications are exceeded, access to WebUntis could permanently blocked by the WebUntis API.
19
+
/// </remarks>
20
+
publicclassMessageClient
21
+
{
22
+
privatereadonlyWebUntisClient_client;
23
+
24
+
/// <summary>
25
+
/// Create a new message client to access the untis messages
26
+
/// </summary>
27
+
/// <param name="client">The client from which account they want to receive the messages</param>
28
+
publicMessageClient(WebUntisClientclient)
29
+
{
30
+
_client=client;
31
+
}
32
+
33
+
/// <summary>
34
+
/// Get the count of unread messages
35
+
/// </summary>
36
+
/// <param name="ct">Cancellation token</param>
37
+
/// <returns>The count of unread messages</returns>
38
+
/// <exception cref="ObjectDisposedException">Thrown when the instance was disposed</exception>
39
+
/// <exception cref="UnauthorizedAccessException">Thrown when you're logged in</exception>
40
+
/// <exception cref="HttpRequestException">Thrown when an error happened while the http request</exception>
0 commit comments