2021-05-13 20:03:07 +02:00
|
|
|
|
using System.Runtime.Serialization;
|
|
|
|
|
|
2021-06-26 20:57:55 +02:00
|
|
|
|
namespace TINK.Repository.Response
|
2021-05-13 20:03:07 +02:00
|
|
|
|
{
|
|
|
|
|
[DataContract]
|
2021-06-26 20:57:55 +02:00
|
|
|
|
public class ResponseBase : CopriVersion
|
2021-05-13 20:03:07 +02:00
|
|
|
|
{
|
|
|
|
|
[DataMember]
|
|
|
|
|
public string response_state { get; private set; }
|
|
|
|
|
|
|
|
|
|
[DataMember]
|
|
|
|
|
public string response { get; private set; }
|
|
|
|
|
|
|
|
|
|
[DataMember]
|
|
|
|
|
public string response_text { get; private set; }
|
|
|
|
|
|
|
|
|
|
[DataMember]
|
|
|
|
|
public string authcookie { get; private set; }
|
|
|
|
|
|
2022-01-04 18:54:03 +01:00
|
|
|
|
/// <summary> Message shown to user.</summary>
|
|
|
|
|
[DataMember]
|
|
|
|
|
public string merchant_message { get; private set; }
|
|
|
|
|
|
2022-01-22 18:16:10 +01:00
|
|
|
|
/// <summary> Initial map display area.</summary>
|
|
|
|
|
[DataMember]
|
|
|
|
|
public MapSpan init_map { get; private set; }
|
|
|
|
|
|
2021-05-13 20:03:07 +02:00
|
|
|
|
/// <summary> Textual description of response. </summary>
|
|
|
|
|
public new string ToString()
|
|
|
|
|
{
|
|
|
|
|
return $"Response state is \"{response_state ?? string.Empty}\", " +
|
|
|
|
|
$"auth cookie is \"{authcookie ?? string.Empty}\" and response is \"{response_text ?? string.Empty}\", " +
|
|
|
|
|
$"code \"{response ?? string.Empty}\"" +
|
|
|
|
|
$"response text \"{response_text ?? string.Empty}\".";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|