mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-11-15 22:56:37 +01:00
27 lines
902 B
C#
27 lines
902 B
C#
using System;
|
|
using TINK.Repository;
|
|
|
|
namespace TINK.Model.Connector
|
|
{
|
|
/// <summary>
|
|
/// Provides information required for copri commands/ query operations.
|
|
/// </summary>
|
|
public class Base
|
|
{
|
|
/// <summary> Reference to object which provides access to copri server. </summary>
|
|
protected ICopriServerBase CopriServer { get; }
|
|
|
|
/// <summary> Gets the merchant id.</summary>
|
|
protected string MerchantId => CopriServer.MerchantId;
|
|
|
|
/// <summary> Constructs a query base object.</summary>
|
|
/// <param name="p_oCopriServer">Server which implements communication.</param>
|
|
/// <param name="p_oErrorStack">Object which hold communication objects.</param>
|
|
protected Base(
|
|
ICopriServerBase p_oCopriServer)
|
|
{
|
|
CopriServer = p_oCopriServer
|
|
?? throw new ArgumentException("Can not instantiate command/ query base- object. Copri server object must never be null or emtpy.");
|
|
}
|
|
}
|
|
}
|