DocSpace-client/common/ASC.Api.Core/Core/Module.cs
AlexeySafronov d568693154 Big Fix commit:
+ Added new Clients for CRM/Products
+ Removed old fake coming-soon pages
+ Added combineUrl and AppSettingsConfig with proxyUrl
+ Added new fields to modules info on Server
+ Fixed work with icon and image urls
+ Added CRM/Projects to nginx/onlyoffice.conf
+ Applied combineUrl in studio links
+ Added and applied "id" field in package.json of all Clients
+ Added new bat files CrmClient.bat and ProjectsClient.bat
+ Fixed ProductClassName for Files
2021-03-22 00:34:21 +03:00

36 lines
972 B
C#

using System;
using ASC.Web.Core;
namespace ASC.Api.Core
{
public class Module
{
public Guid Id { get; set; }
public string AppName { get; set; }
public string Title { get; set; }
public string Link { get; set; }
public string IconUrl { get; set; }
public string ImageUrl { get; set; }
public string HelpUrl { get; set; }
public string Description { get; set; }
public bool IsPrimary { get; set; }
public Module(Product product)
{
Id = product.ProductID;
AppName = product.ProductClassName;
Title = product.Name;
Description = product.Description;
IconUrl = product.Context.IconFileName;
ImageUrl = product.Context.LargeIconFileName;
Link = product.StartURL;
IsPrimary = product.IsPrimary;
HelpUrl = product.HelpURL;
}
}
}