UserJourneySection Class
A section of a user journey: a part of the goal, above its tasks.
public sealed class UserJourneySectionConstructors
| Name | Description |
|---|---|
| UserJourneySection(string) | Initializes a new instance of the UserJourneySection class. |
UserJourneySection(string)
UserJourneySection.csInitializes a new instance of the UserJourneySection class.
public UserJourneySection(string name)Parameters
namestring- The name. An empty name is a section without title, as the tasks Mermaid reads before the first section.
Properties
| Name | Description |
|---|---|
| Name | Gets or sets the name. |
| Tasks | Gets the tasks, in order. |
Methods
| Name | Description |
|---|---|
| AddTask(string, double, IEnumerable<string>) | Adds a task. |
| ToString() | Returns the name of the section. |
AddTask(string, double, IEnumerable<string>)
UserJourneySection.csAdds a task.
public UserJourneyTask AddTask(string name, double score, params IEnumerable<string> actors)Parameters
namestring- The name of the task.
scoredouble- The satisfaction, from 1 (unhappy) to 5 (happy).
actorsIEnumerable<string>- The actors who take part.
Returns
UserJourneyTask The task.