Skip to content

Commit

Permalink
Moved notifications files to original folders
Browse files Browse the repository at this point in the history
add #nullable enable to all files
  • Loading branch information
ivarne committed Nov 17, 2023
1 parent e3bb5f1 commit a854230
Show file tree
Hide file tree
Showing 33 changed files with 62 additions and 31 deletions.
3 changes: 2 additions & 1 deletion src/Notifications/API/Models/EmailContentTypeExt.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
namespace Altinn.Notifications.Models;
#nullable enable
namespace Altinn.Notifications.Models;

/// <summary>
/// Enum describing available content types for an email.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Text.Json.Serialization;
#nullable enable
using System.Text.Json.Serialization;

using Altinn.Notifications.Models;

Expand Down
3 changes: 2 additions & 1 deletion src/Notifications/API/Models/EmailTemplateExt.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Text.Json.Serialization;
#nullable enable
using System.Text.Json.Serialization;

namespace Altinn.Notifications.Models;

Expand Down
3 changes: 2 additions & 1 deletion src/Notifications/API/Models/NotificationChannelExt.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
namespace Altinn.Notifications.Models;
#nullable enable
namespace Altinn.Notifications.Models;

/// <summary>
/// Enum describing available notification channels.
Expand Down
3 changes: 2 additions & 1 deletion src/Notifications/API/Models/NotificationOrderListExt.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Text.Json.Serialization;
#nullable enable
using System.Text.Json.Serialization;

namespace Altinn.Notifications.Models;

Expand Down
3 changes: 2 additions & 1 deletion src/Notifications/API/Models/NotificationResourceLinksExt.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Text.Json.Serialization;
#nullable enable
using System.Text.Json.Serialization;

namespace Altinn.Notifications.Models;

Expand Down
3 changes: 2 additions & 1 deletion src/Notifications/API/Models/NotificationStatusExt.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Text.Json.Serialization;
#nullable enable
using System.Text.Json.Serialization;

namespace Altinn.Notifications.Models;

Expand Down
3 changes: 2 additions & 1 deletion src/Notifications/API/Models/OrderIdExt.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Text.Json.Serialization;
#nullable enable
using System.Text.Json.Serialization;

namespace Altinn.Notifications.Models;

Expand Down
3 changes: 2 additions & 1 deletion src/Notifications/API/Models/OrderResourceLinksExt.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Text.Json.Serialization;
#nullable enable
using System.Text.Json.Serialization;

namespace Altinn.Notifications.Models;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using FluentValidation.Results;
#nullable enable
using FluentValidation.Results;

using Microsoft.AspNetCore.Mvc.ModelBinding;

Expand Down
3 changes: 2 additions & 1 deletion src/Notifications/Core/Enums/AddressType.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
namespace Altinn.Notifications.Core.Enums;
#nullable enable
namespace Altinn.Notifications.Core.Enums;

#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member
/// <summary>
Expand Down
3 changes: 2 additions & 1 deletion src/Notifications/Core/Enums/EmailContentType.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
namespace Altinn.Notifications.Core.Enums;
#nullable enable
namespace Altinn.Notifications.Core.Enums;

/// <summary>
/// Enum describing available email content types
Expand Down
3 changes: 2 additions & 1 deletion src/Notifications/Core/Enums/EmailNotificationResultType.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
namespace Altinn.Notifications.Core.Enums;
#nullable enable
namespace Altinn.Notifications.Core.Enums;

/// <summary>
/// Enum describing email notification result types
Expand Down
3 changes: 2 additions & 1 deletion src/Notifications/Core/Enums/IResultType.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
namespace Altinn.Notifications.Core.Enums;
#nullable enable
namespace Altinn.Notifications.Core.Enums;

/// <summary>
/// Base class for send result of a notification
Expand Down
3 changes: 2 additions & 1 deletion src/Notifications/Core/Enums/NotificationChannel.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
namespace Altinn.Notifications.Core.Enums;
#nullable enable
namespace Altinn.Notifications.Core.Enums;

/// <summary>
/// Enum describing available notification channels.
Expand Down
3 changes: 2 additions & 1 deletion src/Notifications/Core/Enums/NotificationTemplateType.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
namespace Altinn.Notifications.Core.Enums;
#nullable enable
namespace Altinn.Notifications.Core.Enums;

#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member
/// <summary>
Expand Down
3 changes: 2 additions & 1 deletion src/Notifications/Core/Enums/OrderProcessingStatus.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
namespace Altinn.Notifications.Core.Enums;
#nullable enable
namespace Altinn.Notifications.Core.Enums;

#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member
/// <summary>
Expand Down
3 changes: 2 additions & 1 deletion src/Notifications/Core/Models/Address/EmailAddressPoint.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Altinn.Notifications.Core.Enums;
#nullable enable
using Altinn.Notifications.Core.Enums;

namespace Altinn.Notifications.Core.Models.Address;

Expand Down
3 changes: 2 additions & 1 deletion src/Notifications/Core/Models/Address/IAddressPoint.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Text.Json.Serialization;
#nullable enable
using System.Text.Json.Serialization;

using Altinn.Notifications.Core.Enums;

Expand Down
3 changes: 2 additions & 1 deletion src/Notifications/Core/Models/Creator.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
namespace Altinn.Notifications.Core.Models;
#nullable enable
namespace Altinn.Notifications.Core.Models;

/// <summary>
/// A class representing a notification creator
Expand Down
3 changes: 2 additions & 1 deletion src/Notifications/Core/Models/Email.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Text.Json;
#nullable enable
using System.Text.Json;
using System.Text.Json.Serialization;

using Altinn.Notifications.Core.Enums;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Altinn.Notifications.Core.Enums;
#nullable enable
using Altinn.Notifications.Core.Enums;
using Altinn.Notifications.Core.Models.Recipients;

namespace Altinn.Notifications.Core.Models.Notification
Expand Down
3 changes: 2 additions & 1 deletion src/Notifications/Core/Models/Notification/INotification.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
#nullable enable
using System;

using Altinn.Notifications.Core.Enums;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
namespace Altinn.Notifications.Core.Models.Notification;
#nullable enable
namespace Altinn.Notifications.Core.Models.Notification;

/// <summary>
/// Interface representing a notification object with send result data
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Text.Json.Serialization;
#nullable enable
using System.Text.Json.Serialization;

using Altinn.Notifications.Core.Enums;

Expand Down
3 changes: 2 additions & 1 deletion src/Notifications/Core/Models/Recipient.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Altinn.Notifications.Core.Models.Address;
#nullable enable
using Altinn.Notifications.Core.Models.Address;

namespace Altinn.Notifications.Core.Models;

Expand Down
3 changes: 2 additions & 1 deletion src/Notifications/Core/Services/DateTimeService.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Diagnostics.CodeAnalysis;
#nullable enable
using System.Diagnostics.CodeAnalysis;

using Altinn.Notifications.Core.Services.Interfaces;

Expand Down
3 changes: 2 additions & 1 deletion src/Notifications/Core/Services/GuidService.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Diagnostics.CodeAnalysis;
#nullable enable
using System.Diagnostics.CodeAnalysis;

using Altinn.Notifications.Core.Services.Interfaces;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
namespace Altinn.Notifications.Core.Services.Interfaces;
#nullable enable
namespace Altinn.Notifications.Core.Services.Interfaces;

/// <summary>
/// Interface describing a dateTime service
Expand Down
3 changes: 2 additions & 1 deletion src/Notifications/Core/Services/Interfaces/IGuidService.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
namespace Altinn.Notifications.Core.Services.Interfaces;
#nullable enable
namespace Altinn.Notifications.Core.Services.Interfaces;

/// <summary>
/// Interface describing a guid service
Expand Down
3 changes: 2 additions & 1 deletion src/Notifications/Persistence/Repository/OrderRepository.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Text.Json;
#nullable enable
using System.Text.Json;

using Altinn.Notifications.Core.Enums;
using Altinn.Notifications.Core.Models.Orders;
Expand Down

0 comments on commit a854230

Please sign in to comment.