35 lines
940 B
C#
35 lines
940 B
C#
namespace ASC.Web.Api.Models
|
|
{
|
|
public class AuthServiceModel
|
|
{
|
|
public string Name { get; set; }
|
|
public string Title { get; set; }
|
|
public string Description { get; set; }
|
|
public string Instruction { get; set; }
|
|
public bool CanSet { get; set; }
|
|
public List<AuthKey> Props { get; set; }
|
|
|
|
public AuthServiceModel()
|
|
{
|
|
|
|
}
|
|
|
|
public AuthServiceModel(Consumer consumer)
|
|
{
|
|
var authService = new AuthService(consumer);
|
|
|
|
Name = authService.Name;
|
|
Title = authService.Title;
|
|
Description = authService.Description;
|
|
Instruction = authService.Instruction;
|
|
CanSet = authService.CanSet;
|
|
|
|
if (consumer.CanSet)
|
|
{
|
|
Props = authService.Props;
|
|
CanSet = authService.CanSet;
|
|
}
|
|
}
|
|
}
|
|
}
|