# Interface Leg

Represents the Leg of a Voice Call

interface Leg {
get conversationId(): string;
get direction(): string;
get endTime(): string;
get from(): LegChannelJS;
get id(): string;
get mediaState(): Nullable<MediaStateJS>;
get startTime(): string;
get status(): string;
get to(): LegChannelJS;
get type(): string;
}

#####
Index

### Accessors

conversationId
direction
endTime
from
id
mediaState
startTime
status
to
type

## Accessors

### conversationId

- get conversationId(): string

- The id of the Conversation the Leg belongs to

  #### Returns string

### direction

- get direction(): string

- The direction of the Leg (inbound or outbound)

  #### Returns string

### endTime

- get endTime(): string

- The timestamp when the Leg ended

  #### Returns string

### from

- get from(): LegChannelJS

- The from LegChannel

  #### Returns LegChannelJS

### id

- get id(): string

- The Leg id

  #### Returns string

### mediaState

- get mediaState(): Nullable<MediaStateJS>

- #### Returns Nullable<MediaStateJS>

### startTime

- get startTime(): string

- The timestamp when the Leg started

  #### Returns string

### status

- get status(): string

- The status of the Leg

  #### Returns string

### to

- get to(): LegChannelJS

- The to LegChannel

  #### Returns LegChannelJS

### type

- get type(): string

- The type of Leg

  #### Returns string