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
/// The name of the department (An empty value means the user has not department)
33
+
/// </summary>
34
+
publicstringDepartment{get;set;}
35
+
36
+
/// <summary>
37
+
/// The language code of the user
38
+
/// </summary>
39
+
/// <remarks>
40
+
/// That are no normal language codes. You must use the values from <see cref="WebUntisClient.GetAvailableLanguagesAsync(System.Threading.CancellationToken)"/>
41
+
/// </remarks>
42
+
publicstringLanguageCode{get;set;}
43
+
44
+
/// <summary>
45
+
/// The email of the user
46
+
/// </summary>
47
+
publicstringEmail{get;set;}
48
+
49
+
/// <summary>
50
+
/// The max open bookings
51
+
/// </summary>
52
+
publicintEffectiveMaxBookings{get;set;}
53
+
54
+
/// <summary>
55
+
/// The current open bookings
56
+
/// </summary>
57
+
publicintOpenBookings{get;set;}
58
+
59
+
/// <summary>
60
+
/// Forward the messages to the users <see cref="Email"/>
Copy file name to clipboardExpand all lines: WebUntisAPI.Client/WebUntisclient.Profile.cs
+134-1Lines changed: 134 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -9,10 +9,13 @@
9
9
usingSystem.Threading.Tasks;
10
10
usingWebUntisAPI.Client.Models.Messages;
11
11
usingSystem.Drawing.Imaging;
12
+
usingNewtonsoft.Json.Linq;
13
+
usingWebUntisAPI.Client.Models;
14
+
usingNewtonsoft.Json;
15
+
usingSystem.IO;
12
16
#if NET47||NET481
13
17
usingSystem.Drawing.Drawing2D;
14
18
usingSystem.Drawing;
15
-
usingSystem.IO;
16
19
#elif NET6_0_OR_GREATER
17
20
usingSixLabors.Fonts;
18
21
usingSixLabors.ImageSharp;
@@ -173,6 +176,136 @@ public async Task<Image> GetMessagePersonProfileImageAsync(MessagePerson person,
173
176
#endif
174
177
}
175
178
179
+
/// <summary>
180
+
/// Get all by WebUntis supported languages
181
+
/// </summary>
182
+
/// <param name="ct">Cancellation token</param>
183
+
/// <returns>The languages (<see cref="KeyValuePair{TKey, TValue}.Key"/> is the WebUntis internal name of the language and <see cref="KeyValuePair{TKey, TValue}.Value"/> is the full name)</returns>
184
+
/// <exception cref="ObjectDisposedException">Thrown when the instance was disposed</exception>
185
+
/// <exception cref="UnauthorizedAccessException">Thrown when you're logged in</exception>
186
+
/// <exception cref="HttpRequestException">Thrown when an error happened while the http request</exception>
0 commit comments