using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Sample.DTO
{
    public class Response<T>
    {
        public int StatusCode { get; set; }
        public string StatusMessage { get; set; }
        public T Data { get; set; }

        public override string ToString()
        {
            return $"API Error - Error Code : {StatusCode},  Error Message : {StatusMessage}";
        }
    }

    public class Response
    {
        public int StatusCode { get; set; }
        public string StatusMessage { get; set; }
        public Object Data { get; set; }
        public override string ToString()
        {
            return $"API Error - Error Code : {StatusCode},  Error Message : {StatusMessage}";
        }
    }
}
