Skip to content

Commit c1027e8

Browse files
- Modified the namespace for extensions.
- Updated directives for classes that are dependent on these extensions
1 parent bc93577 commit c1027e8

File tree

12 files changed

+15
-13
lines changed

12 files changed

+15
-13
lines changed

RedditSharp/DateTime/DateTimeExtensions.cs renamed to RedditSharp/Extensions/DateTimeExtensions/DateTimeExtensions.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Text;
5-
using System.Threading.Tasks;
62

7-
namespace RedditSharp.Utils
3+
namespace RedditSharp.Extensions.DateTimeExtensions
84
{
95
internal static class DateTimeExtensions
106
{
File renamed without changes.
File renamed without changes.

RedditSharp/Extensions.cs renamed to RedditSharp/Extensions/Extensions.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
using Newtonsoft.Json.Linq;
2-
using System.Collections.Generic;
1+
using System.Collections.Generic;
2+
using Newtonsoft.Json.Linq;
33

4-
namespace RedditSharp
4+
namespace RedditSharp.Extensions
55
{
66
public static class Extensions
77
{

RedditSharp/Listing.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
using RedditSharp.Things;
33
using System;
44
using System.Collections.Generic;
5+
using RedditSharp.Extensions;
56

67
namespace RedditSharp
78
{

RedditSharp/RedditSharp.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
<Compile Include="Moderator Actions\ModActionType.cs" />
5656
<Compile Include="Things\Contributor.cs" />
5757
<Compile Include="Things\ModAction.cs" />
58-
<Compile Include="DateTime\DateTimeExtensions.cs" />
58+
<Compile Include="Extensions\DateTimeExtensions\DateTimeExtensions.cs" />
5959
<Compile Include="SpamFilterSettings.cs" />
6060
<Compile Include="Things\AuthenticatedUser.cs" />
6161
<Compile Include="AuthProvider.cs" />
@@ -67,7 +67,7 @@
6767
<Compile Include="Interfaces\ICaptchaSolver.cs" />
6868
<Compile Include="Things\Comment.cs" />
6969
<Compile Include="Things\CreatedThing.cs" />
70-
<Compile Include="Extensions.cs" />
70+
<Compile Include="Extensions\Extensions.cs" />
7171
<Compile Include="Flairs\FlairTemplate.cs" />
7272
<Compile Include="Interfaces\IWebAgent.cs" />
7373
<Compile Include="Data\LinkData.cs" />
@@ -90,8 +90,8 @@
9090
<Compile Include="Subreddit Information\SubredditStyle.cs" />
9191
<Compile Include="Data\TextData.cs" />
9292
<Compile Include="Things\Thing.cs" />
93-
<Compile Include="DateTime\UnixTimeStamp.cs" />
94-
<Compile Include="DateTime\UnixTimestampConverter.cs" />
93+
<Compile Include="Extensions\DateTimeExtensions\UnixTimeStamp.cs" />
94+
<Compile Include="Extensions\DateTimeExtensions\UnixTimestampConverter.cs" />
9595
<Compile Include="UrlParser.cs" />
9696
<Compile Include="Things\VotableThing.cs" />
9797
<Compile Include="Exceptions\RateLimitException.cs" />

RedditSharp/Subreddit Information/SubredditSettings.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using System.Web;
22
using Newtonsoft.Json;
33
using Newtonsoft.Json.Linq;
4+
using RedditSharp.Extensions;
45
using RedditSharp.Things;
56

67
namespace RedditSharp

RedditSharp/Things/Comment.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
using System.Net;
88
using System.Security.Authentication;
99
using System.Threading.Tasks;
10+
using RedditSharp.Extensions;
1011

1112
namespace RedditSharp.Things
1213
{

RedditSharp/Things/Post.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
using System.Web;
77
using Newtonsoft.Json;
88
using Newtonsoft.Json.Linq;
9+
using RedditSharp.Extensions;
910

1011
namespace RedditSharp.Things
1112
{

RedditSharp/Things/Subreddit.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
using HtmlAgilityPack;
77
using Newtonsoft.Json;
88
using Newtonsoft.Json.Linq;
9-
using RedditSharp.Utils;
9+
using RedditSharp.Extensions.DateTimeExtensions;
1010

1111
namespace RedditSharp.Things
1212
{

0 commit comments

Comments
 (0)