Skip to content

Commit 5baaf6a

Browse files
committed
Code clean
1 parent 9c41475 commit 5baaf6a

6 files changed

Lines changed: 2 additions & 26 deletions

File tree

WebUntisAPI.Client/Models/AccountConfig.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
11
using Newtonsoft.Json;
2-
using System;
3-
using System.Collections.Generic;
4-
using System.Linq;
5-
using System.Text;
6-
using System.Threading.Tasks;
72

83
namespace WebUntisAPI.Client.Models
94
{

WebUntisAPI.Client/Models/ContactDetails.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
11
using Newtonsoft.Json;
2-
using System;
3-
using System.Collections.Generic;
4-
using System.Linq;
5-
using System.Text;
6-
using System.Threading.Tasks;
72

83
namespace WebUntisAPI.Client.Models
94
{

WebUntisAPI.Client/Models/GeneralAccount.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
using Newtonsoft.Json;
22
using Newtonsoft.Json.Linq;
3-
using System;
4-
using System.Collections.Generic;
5-
using System.Linq;
6-
using System.Text;
7-
using System.Threading.Tasks;
83

94
namespace WebUntisAPI.Client.Models
105
{

WebUntisAPI.Client/Models/Messages/FilterItem.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
11
using Newtonsoft.Json;
2-
using System;
3-
using System.Collections.Generic;
4-
using System.Linq;
5-
using System.Text;
6-
using System.Threading.Tasks;
72

83
namespace WebUntisAPI.Client.Models.Messages
94
{

WebUntisAPI.Client/WebUntisClient.Messages.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ public async Task<MessagePerson[]> GetStaffFilterSearchResultAsync(string search
167167
throw new HttpRequestException($"There was an error while the http request (Code: {response.StatusCode}).");
168168

169169
string responseString = await response.Content.ReadAsStringAsync();
170-
170+
171171
JObject obj = JObject.Parse(responseString);
172172
return obj["users"].Value<List<MessagePerson>>().ToArray();
173173
}

WebUntisAPI.Client/WebUntisclient.Profile.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,11 @@
44
using System.Net.Http.Headers;
55
using System.Net.Http;
66
using System.Net;
7-
using System.Text;
87
using System.Threading;
98
using System.Threading.Tasks;
109
using WebUntisAPI.Client.Models.Messages;
11-
using System.Drawing.Imaging;
1210
using Newtonsoft.Json.Linq;
1311
using WebUntisAPI.Client.Models;
14-
using Newtonsoft.Json;
15-
using System.IO;
1612
#if NET47 || NET481
1713
using System.Drawing.Drawing2D;
1814
using System.Drawing;
@@ -171,7 +167,7 @@ public async Task<Image> GetMessagePersonProfileImageAsync(MessagePerson person,
171167
Rectangle cropRectangle = new(xOffSet, yOffSet, shorterSide, shorterSide);
172168
op.Crop(cropRectangle);
173169
});
174-
170+
175171
return image;
176172
#endif
177173
}

0 commit comments

Comments
 (0)