26 lines
486 B
C#
26 lines
486 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace Assets.Sources.Core.Infrastructure
|
|
{
|
|
[System.Serializable]
|
|
public class Response<T>
|
|
{
|
|
public List<T> Items;
|
|
public T Item
|
|
{
|
|
get
|
|
{
|
|
if (Items != null && Items.Count == 1)
|
|
{
|
|
return Items[0];
|
|
}
|
|
return default(T);
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|