2019-07-29 10:04:43 +00:00
|
|
|
|
using System;
|
2020-08-27 14:01:37 +00:00
|
|
|
|
|
2019-07-29 10:04:43 +00:00
|
|
|
|
using ASC.Web.Core;
|
2019-07-05 13:58:04 +00:00
|
|
|
|
|
|
|
|
|
namespace ASC.Api.Core
|
|
|
|
|
{
|
|
|
|
|
public class Module
|
|
|
|
|
{
|
2019-07-29 10:04:43 +00:00
|
|
|
|
public Guid Id { get; set; }
|
2019-07-05 13:58:04 +00:00
|
|
|
|
public string Title { get; set; }
|
|
|
|
|
public string Link { get; set; }
|
|
|
|
|
public string ImageUrl { get; set; }
|
|
|
|
|
public string Description { get; set; }
|
|
|
|
|
public bool IsPrimary { get; set; }
|
|
|
|
|
|
|
|
|
|
public Module(Product product, bool isPrimary = false)
|
|
|
|
|
{
|
2019-07-29 10:04:43 +00:00
|
|
|
|
Id = product.ProductID;
|
2019-07-05 13:58:04 +00:00
|
|
|
|
Title = product.Name;
|
|
|
|
|
Description = product.Description;
|
|
|
|
|
ImageUrl = product.Context.LargeIconFileName;
|
|
|
|
|
Link = product.StartURL;
|
|
|
|
|
IsPrimary = isPrimary;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|