Skip to content

Commit 57ac721

Browse files
committed
Refine public API structure
1 parent 9a65b07 commit 57ac721

14 files changed

Lines changed: 28 additions & 21 deletions

File tree

Notion2Ical.Tests/Usings.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
global using Xunit;
44
global using Microsoft.Extensions.DependencyInjection;
55
global using Notion2Ical;
6-
global using Notion2Ical.Interfaces;
6+
global using Notion2Ical.Concretes;
77
global using Notion2Ical.NotionApi;
88
global using Notion2Ical.ICalendar;
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
namespace Notion2Ical;
1+
namespace Notion2Ical.Concretes;
22

3-
public class NotionRepository : INotionRepository
3+
internal class NotionRepository : INotionRepository
44
{
55
private readonly HttpClient _httpClient;
66
private readonly NotionCalendarOptions _options;
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
namespace Notion2Ical;
1+
namespace Notion2Ical.Concretes;
22

3-
public class NotionService : INotionService
3+
internal class NotionService : INotionService
44
{
55
private readonly INotionRepository _notionRepository;
66
private readonly NotionCalendarOptions _options;

Notion2Ical/GlobalUsings.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
global using System.Text.Json;
55
global using System.Text.Json.Serialization;
66
global using Microsoft.Extensions.DependencyInjection;
7-
global using Notion2Ical.Interfaces;
7+
global using Notion2Ical.Concretes;
88
global using Notion2Ical.NotionApi;
99
global using Notion2Ical.ICalendar;

Notion2Ical/ICalendar/VCalendar.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
namespace Notion2Ical.ICalendar;
22

3-
public class VCalendar
3+
internal class VCalendar
44
{
55
private readonly List<VEvent> _events = [];
66
private readonly string _name;

Notion2Ical/ICalendar/VEvent.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
namespace Notion2Ical.ICalendar;
22

3-
public class VEvent
3+
internal class VEvent
44
{
55
private const string DateTimeFormat = "yyyyMMddTHHmmssZ";
66

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
namespace Notion2Ical.Interfaces;
1+
namespace Notion2Ical;
22

3-
public interface INotionRepository
3+
internal interface INotionRepository
44
{
55
Task<IReadOnlyList<Result>> GetTodoTasks(CancellationToken cancellationToken = default);
66
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace Notion2Ical.Interfaces;
1+
namespace Notion2Ical;
22

33
public interface INotionService
44
{

Notion2Ical/Notion2Ical.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
<PackageReference Include="Microsoft.Extensions.Http" Version="10.0.9" />
1616
</ItemGroup>
1717

18+
<ItemGroup>
19+
<InternalsVisibleTo Include="Notion2Ical.Tests" />
20+
</ItemGroup>
21+
1822
<ItemGroup>
1923
<None Include="..\README.md" Pack="true" PackagePath="\" />
2024
</ItemGroup>

Notion2Ical/NotionApi/Name.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
namespace Notion2Ical.NotionApi;
22

3-
public class Name
3+
internal class Name
44
{
55
[JsonPropertyName("title")]
66
public List<ItemTitle>? Title { get; set; }

0 commit comments

Comments
 (0)