mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-11-12 13:36:26 +01:00
25 lines
462 B
C#
25 lines
462 B
C#
using System.Runtime.Serialization;
|
|
|
|
namespace TINK.Repository.Response
|
|
{
|
|
[DataContract]
|
|
public class ResponseContainer<T>
|
|
{
|
|
[DataMember]
|
|
public T shareejson { get; private set; }
|
|
|
|
/// <summary>
|
|
/// Serializes object to string.
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public override string ToString()
|
|
{
|
|
if (shareejson == null)
|
|
{
|
|
return "Response container does not hold no entry.";
|
|
}
|
|
|
|
return shareejson.ToString();
|
|
}
|
|
}
|
|
}
|