UserJourneySection Class

A section of a user journey: a part of the goal, above its tasks.

public sealed class UserJourneySection

Constructors

NameDescription
UserJourneySection(string)Initializes a new instance of the UserJourneySection class.

UserJourneySection(string)

UserJourneySection.cs

Initializes a new instance of the UserJourneySection class.

public UserJourneySection(string name)

Parameters

name string
The name. An empty name is a section without title, as the tasks Mermaid reads before the first section.

Properties

NameDescription
NameGets or sets the name.
TasksGets the tasks, in order.

Gets or sets the name.

public string Name { get; set; }

Property value

string

Gets the tasks, in order.

public IList<UserJourneyTask> Tasks { get; }

Methods

NameDescription
AddTask(string, double, IEnumerable<string>)Adds a task.
ToString()Returns the name of the section.

AddTask(string, double, IEnumerable<string>)

UserJourneySection.cs

Adds a task.

public UserJourneyTask AddTask(string name, double score, params IEnumerable<string> actors)

Parameters

name string
The name of the task.
score double
The satisfaction, from 1 (unhappy) to 5 (happy).
actors IEnumerable<string>
The actors who take part.

Returns

UserJourneyTask The task.

Returns the name of the section.

public override string ToString()

Returns

string The name.