using System;
using TINK.Model;
using TINK.Model.Map;
namespace TINK.Services.CopriApi
{
/// Holds general purpose data returned from COPRI.
public class GeneralData
{
/// Constructs an empty general data object.
public GeneralData() : this(null, null, null, null) { }
public GeneralData(
IMapSpan initialMapSpan,
string merachantMessage,
Version apiVersion,
ResourceUrls resourceUrls)
{
InitialMapSpan = initialMapSpan ?? MapSpanFactory.Create();
MerchantMessage = merachantMessage ?? string.Empty;
ApiVersion = apiVersion ?? new Version(0, 0);
ResourceUrls = resourceUrls ?? new ResourceUrls();
}
/// Initial map display area.
public IMapSpan InitialMapSpan { get; private set; }
/// Message to be shown to user.
public string MerchantMessage { get; private set; }
/// Version of COPRI api. 0.0 if version is not set
public Version ApiVersion { get; private set; }
/// Resources (html pages) to be displayed provided by COPRI.
public IResourceUrls ResourceUrls { get; private set; }
}
}