-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
possible to order notification for org
- Loading branch information
Showing
39 changed files
with
251 additions
and
144 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
src/Altinn.Notifications.Core/Integrations/IRegisterClient.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using Altinn.Notifications.Core.Models.ContactPoints; | ||
|
||
namespace Altinn.Notifications.Core.Integrations | ||
{ | ||
/// <summary> | ||
/// Interface describing a client for the register service | ||
/// </summary> | ||
public interface IRegisterClient | ||
{ | ||
/// <summary> | ||
/// Retrieves contact points for a list of organizations | ||
/// </summary> | ||
/// <param name="organizationNumbers">A list of organization numbers to look up contact points for</param> | ||
/// <returns>A list of <see cref="OrganizationContactPoints"/> for the provided organizations</returns> | ||
public Task<List<OrganizationContactPoints>> GeOrganizationContactPoints(List<string> organizationNumbers); | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
src/Altinn.Notifications.Core/Models/ContactPoints/OrganizationContactPoints.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
namespace Altinn.Notifications.Core.Models.ContactPoints; | ||
|
||
/// <summary> | ||
/// Class describing the contact points for an organization | ||
/// </summary> | ||
public class OrganizationContactPoints | ||
{ | ||
/// <summary> | ||
/// Gets or sets the organization number for the organization | ||
/// </summary> | ||
public string OrganizationNumber { get; set; } = string.Empty; | ||
|
||
/// <summary> | ||
/// Gets or sets a list of official mobile numbers | ||
/// </summary> | ||
public List<string> MobileNumberList { get; set; } = []; | ||
|
||
/// <summary> | ||
/// Gets or sets a list of official email addresses | ||
/// </summary> | ||
public List<string> EmailList { get; set; } = []; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
src/Altinn.Notifications.Integrations/Register/OrgContactPointLookup.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
namespace Altinn.Notifications.Integrations.Register | ||
{ | ||
/// <summary> | ||
/// A class describing the query model for contact points for organizations | ||
/// </summary> | ||
public class OrgContactPointLookup | ||
{ | ||
/// <summary> | ||
/// Gets or sets the list of organization numbers to lookup contact points for | ||
/// </summary> | ||
[JsonPropertyName("organizationNumbers")] | ||
public List<string> OrganizationNumbers { get; set; } = []; | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
src/Altinn.Notifications.Integrations/Register/OrgContactPointsList.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using Altinn.Notifications.Core.Models.ContactPoints; | ||
|
||
namespace Altinn.Notifications.Integrations.Register | ||
{ | ||
/// <summary> | ||
/// A list representation of <see cref="OrganizationContactPoints"/> | ||
/// </summary> | ||
public class OrgContactPointsList | ||
{ | ||
/// <summary> | ||
/// A list containing contact points for organizations | ||
/// </summary> | ||
public List<OrganizationContactPoints> ContactPointsList { get; set; } = []; | ||
} | ||
} |
Oops, something went wrong.