sharee.bike-App/TINKLib/Repository/Response/ResponseContainer.cs

26 lines
576 B
C#
Raw Normal View History

2021-05-13 20:03:07 +02:00
using System.Runtime.Serialization;
namespace TINK.Model.Repository.Response
{
[DataContract]
public class ResponseContainer<T>
{
[DataMember]
public T tinkjson { get; private set; }
/// <summary>
/// Serializes object to string.
/// </summary>
/// <returns></returns>
public override string ToString()
{
if (tinkjson == null)
{
return "Response container does not hold no entry.";
}
return tinkjson.ToString();
}
}
}