Class Ncco
Represents a Nexmo Call Control Object (NCCO) — an ordered sequence of actions that control the flow of a voice call. Actions are executed in order and can include talk, stream, record, connect, input, notify, wait, and transfer.
public class Ncco : List<NccoAction>, IList<NccoAction>, ICollection<NccoAction>, IReadOnlyList<NccoAction>, IReadOnlyCollection<NccoAction>, IEnumerable<NccoAction>, IList, ICollection, IEnumerable
- Inheritance
-
Ncco
- Implements
- Inherited Members
Constructors
Ncco(params NccoAction[])
Creates a new NCCO with the specified sequence of actions.
public Ncco(params NccoAction[] actions)
Parameters
actionsNccoAction[]The ordered NCCO actions to execute during the call.
Methods
ToString()
Serializes the NCCO to its JSON representation for use in API requests or answer webhooks.
public override string ToString()
Returns
- string
The JSON string representing this NCCO.