mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-11-04 18:26:25 +01:00
37 lines
1.1 KiB
C#
37 lines
1.1 KiB
C#
using System;
|
|
using TINK.Model;
|
|
using TINK.Model.Map;
|
|
|
|
namespace TINK.Services.CopriApi
|
|
{
|
|
/// <summary> Holds general purpose data returned from COPRI. </summary>
|
|
public class GeneralData
|
|
{
|
|
/// <summary> Constructs an empty general data object. </summary>
|
|
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();
|
|
}
|
|
|
|
/// <summary> Initial map display area.</summary>
|
|
public IMapSpan InitialMapSpan { get; private set; }
|
|
|
|
/// <summary> Message to be shown to user.</summary>
|
|
public string MerchantMessage { get; private set; }
|
|
|
|
/// <summary> Version of COPRI api. 0.0 if version is not set</summary>
|
|
public Version ApiVersion { get; private set; }
|
|
|
|
/// <summary> Resources (html pages) to be displayed provided by COPRI.</summary>
|
|
public IResourceUrls ResourceUrls { get; private set; }
|
|
}
|
|
}
|