mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-12-23 07:36:31 +01:00
33 lines
994 B
C#
33 lines
994 B
C#
|
using System.Runtime.Serialization;
|
|||
|
|
|||
|
namespace TINK.Model.Repository.Response
|
|||
|
{
|
|||
|
[DataContract]
|
|||
|
public class ResponseBase
|
|||
|
{
|
|||
|
[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; }
|
|||
|
|
|||
|
[DataMember]
|
|||
|
public string copri_version { get; private set; }
|
|||
|
|
|||
|
/// <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}\".";
|
|||
|
}
|
|||
|
}
|
|||
|
}
|