-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
using EDILibrary.Helper; | ||
|
||
namespace EDILibrary.Interfaces | ||
{ | ||
/// <summary> | ||
/// An interface that allows to determine the <see cref="BO4E.ENUM.Sparte"/> ("division") of a market partner. | ||
/// </summary> | ||
/// <remarks> | ||
/// The classes implementing this interface might be hardcoded mappings to start with; | ||
/// But in the future™ there might be another market partner service that holds this information. | ||
/// </remarks> | ||
public interface IDivisionResolver | ||
{ | ||
/// <summary> | ||
/// Determine the sparte that is relevant for a message which has <paramref name="senderMarketPartnerId"/> as sender and <paramref name="receiverMarketPartnerId"/> as receiver. | ||
/// </summary> | ||
/// <param name="senderMarketPartnerId">the 13 digit market partner ID of the sending marktpartner</param> | ||
/// <param name="receiverMarketPartnerId">the 13 digit market partner ID of the sending marktpartner</param> | ||
/// <returns>the sparte</returns> | ||
public Sparte GetSparte( | ||
string? senderMarketPartnerId, | ||
Check warning on line 27 in EDILibrary/Interfaces/IDivisionResolver.cs GitHub Actions / unittest (8.0.100)
Check warning on line 27 in EDILibrary/Interfaces/IDivisionResolver.cs GitHub Actions / unittest (6.0.201)
Check warning on line 27 in EDILibrary/Interfaces/IDivisionResolver.cs GitHub Actions / unittest (8.0.100)
Check warning on line 27 in EDILibrary/Interfaces/IDivisionResolver.cs GitHub Actions / unittest (6.0.201)
Check warning on line 27 in EDILibrary/Interfaces/IDivisionResolver.cs GitHub Actions / unittest (7.0.100)
Check warning on line 27 in EDILibrary/Interfaces/IDivisionResolver.cs GitHub Actions / unittest (7.0.100)
Check warning on line 27 in EDILibrary/Interfaces/IDivisionResolver.cs GitHub Actions / coverage
|
||
string? receiverMarketPartnerId | ||
Check warning on line 28 in EDILibrary/Interfaces/IDivisionResolver.cs GitHub Actions / unittest (8.0.100)
Check warning on line 28 in EDILibrary/Interfaces/IDivisionResolver.cs GitHub Actions / unittest (6.0.201)
Check warning on line 28 in EDILibrary/Interfaces/IDivisionResolver.cs GitHub Actions / unittest (8.0.100)
Check warning on line 28 in EDILibrary/Interfaces/IDivisionResolver.cs GitHub Actions / unittest (6.0.201)
Check warning on line 28 in EDILibrary/Interfaces/IDivisionResolver.cs GitHub Actions / unittest (7.0.100)
Check warning on line 28 in EDILibrary/Interfaces/IDivisionResolver.cs GitHub Actions / unittest (7.0.100)
Check warning on line 28 in EDILibrary/Interfaces/IDivisionResolver.cs GitHub Actions / coverage
|
||
); | ||
} | ||
} |