DocSpace-buildtools/web/ASC.Web.Api/Models/AuthServiceModel.cs

35 lines
940 B
C#
Raw Normal View History

2022-01-31 15:13:08 +00:00
namespace ASC.Web.Api.Models
2020-08-26 14:34:21 +00:00
{
public class AuthServiceModel
{
public string Name { get; set; }
2020-08-26 16:13:41 +00:00
public string Title { get; set; }
2020-09-03 08:43:13 +00:00
public string Description { get; set; }
2020-08-26 16:13:41 +00:00
public string Instruction { get; set; }
public bool CanSet { get; set; }
2020-08-26 14:34:21 +00:00
public List<AuthKey> Props { get; set; }
2020-08-26 16:13:41 +00:00
public AuthServiceModel()
{
}
public AuthServiceModel(Consumer consumer)
{
var authService = new AuthService(consumer);
Name = authService.Name;
Title = authService.Title;
2020-09-03 08:43:13 +00:00
Description = authService.Description;
2020-08-26 16:13:41 +00:00
Instruction = authService.Instruction;
CanSet = authService.CanSet;
if (consumer.CanSet)
{
Props = authService.Props;
CanSet = authService.CanSet;
}
}
2020-08-26 14:34:21 +00:00
}
}