An activity interface
This commit is contained in:
parent
e987f215bb
commit
6e2fec1620
30 changed files with 847 additions and 10 deletions
17
src/Yavsc.Abstract/Workflow/ActivityBrowseItemDto.cs
Normal file
17
src/Yavsc.Abstract/Workflow/ActivityBrowseItemDto.cs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
namespace Yavsc.Abstract.Workflow;
|
||||
|
||||
/// <summary>
|
||||
/// Activity node returned by the browsing API.
|
||||
/// </summary>
|
||||
public sealed class ActivityBrowseItemDto
|
||||
{
|
||||
public string Code { get; set; } = string.Empty;
|
||||
public string Name { get; set; } = string.Empty;
|
||||
public string ParentCode { get; set; } = string.Empty;
|
||||
public string Description { get; set; } = string.Empty;
|
||||
public string Photo { get; set; } = string.Empty;
|
||||
public int Rate { get; set; }
|
||||
public int PerformerCount { get; set; }
|
||||
public List<CommandFormSummaryDto> Forms { get; set; } = new();
|
||||
public List<ActivityBrowseItemDto> Children { get; set; } = new();
|
||||
}
|
||||
18
src/Yavsc.Abstract/Workflow/ActivityPerformerDto.cs
Normal file
18
src/Yavsc.Abstract/Workflow/ActivityPerformerDto.cs
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
namespace Yavsc.Abstract.Workflow;
|
||||
|
||||
/// <summary>
|
||||
/// Lightweight performer description returned for one activity.
|
||||
/// </summary>
|
||||
public sealed class ActivityPerformerDto
|
||||
{
|
||||
public string PerformerId { get; set; } = string.Empty;
|
||||
public string UserName { get; set; } = string.Empty;
|
||||
public bool Active { get; set; }
|
||||
public bool AcceptNotifications { get; set; }
|
||||
public bool AcceptPublicContact { get; set; }
|
||||
public string WebSite { get; set; } = string.Empty;
|
||||
public string ActivityCode { get; set; } = string.Empty;
|
||||
public string ActivityName { get; set; } = string.Empty;
|
||||
public string SettingsClassName { get; set; } = string.Empty;
|
||||
public int ExtraActivityCount { get; set; }
|
||||
}
|
||||
11
src/Yavsc.Abstract/Workflow/CommandFormSummaryDto.cs
Normal file
11
src/Yavsc.Abstract/Workflow/CommandFormSummaryDto.cs
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
namespace Yavsc.Abstract.Workflow;
|
||||
|
||||
/// <summary>
|
||||
/// Lightweight command-form description exposed to API clients.
|
||||
/// </summary>
|
||||
public sealed class CommandFormSummaryDto
|
||||
{
|
||||
public long Id { get; set; }
|
||||
public string ActionName { get; set; } = string.Empty;
|
||||
public string Title { get; set; } = string.Empty;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue