using Hncore.Infrastructure.Tree;
using Hncore.Pass.Vpn.Domain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Hncore.Infrastructure.Extension;
namespace Hncore.Pass.Vpn.Response.Product
{
   public class ProductResponse
    {
        public int Id { get; set; }
        public string Name { get; set; }
        public string Image { get; set; }
        public int Sort { get; set; }   
        public string Content { get; set; }
        public string Profile { get; set; }
        public int TenantId { get; set; }

        public int OnLine { get; set; } = 1;

        public List<string> ContentLine=> this.Profile.Has()?this.Profile.Split('\n').ToList():new List<string>();

    }

    public class ProductWithPackageResponse
    {
        public ProductResponse Product { get; set; }
        public List<ProductPackageEntity> Packages { get; set; }
    }
}
