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

26 lines
576 B
C#
Raw Permalink Normal View History

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]
public class ResponseContainer<T>
{
[DataMember]
2021-06-26 20:57:55 +02:00
public T shareejson { get; private set; }
2021-05-13 20:03:07 +02:00
/// <summary>
/// Serializes object to string.
/// </summary>
/// <returns></returns>
public override string ToString()
{
2021-06-26 20:57:55 +02:00
if (shareejson == null)
2021-05-13 20:03:07 +02:00
{
return "Response container does not hold no entry.";
}
2021-06-26 20:57:55 +02:00
return shareejson.ToString();
2021-05-13 20:03:07 +02:00
}
}
}