mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-12-23 15:46:29 +01:00
27 lines
1,016 B
C#
27 lines
1,016 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.");
|
|
}
|
|
}
|
|
}
|