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

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