# Class: Participant

## Constructor

#### new Participant(participantService, conference)

  The Participant class represents a conference participant.

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `participantService` | AvayaClientServices.Services.Conference.ParticipantService |
  `conference` | AvayaClientServices.Services.Conference.Conference |

## Methods

#### getAddress() → {string}

  Returns participant's address

  Inherited From:
    - AvayaClientServices.Services.Participant#getAddress

  ##### Returns:

  { string }

#### getAllPossibleContactMatches() → {AvayaClientServices.Services.Contacts.MatchedContactsWithMatchLevel|undefined}

  Return all possible contact matches or undefined if there are no matches.

  Inherited From:
    - AvayaClientServices.Services.Participant#getAllPossibleContactMatches

  ##### Returns:

  { AvayaClientServices.Services.Contacts.MatchedContactsWithMatchLevel | undefined }

#### getBestContactMatch() → {AvayaClientServices.Services.Contacts.Contact|undefined}

  Return best possible contact match. If no match was found, undefined is returned.

  Inherited From:
    - AvayaClientServices.Services.Participant#getBestContactMatch

  ##### Returns:

  { AvayaClientServices.Services.Contacts.Contact | undefined }

#### getDisplayName() → {string}

  Returns participant's display name.

  Inherited From:
    - AvayaClientServices.Services.Participant#getDisplayName

  ##### Returns:

  { string }

#### getParticipantAuthorizationStatus() → {AvayaClientServices.Services.Conference.ParticipantAuthorizationStatus}

  Returns participant's status.

  ##### Returns:

  { AvayaClientServices.Services.Conference.ParticipantAuthorizationStatus }

#### getParticipantId() → {string}

  Returns participant's unique id.

  Inherited From:
    - AvayaClientServices.Services.Participant#getParticipantId

  ##### Returns:

  { string }

#### isActiveParticipant() → {boolean}

  Returns true if participant is in active status.

  ##### Returns:

  { boolean }

#### isLocalUser() → {boolean}

  Returns true, if participant is self.

  Inherited From:
    - AvayaClientServices.Services.Participant#isLocalUser

  ##### Returns:

  { boolean }

#### isPendingParticipant() → {boolean}

  Returns true if participant is in pending status.

  ##### Returns:

  { boolean }

#### <protected> setAddress(address)

  Sets participant's address.

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `address` | string |

  Inherited From:
    - AvayaClientServices.Services.Participant#setAddress

#### setDisplayName(displayName)

  Returns participant's display name.

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `displayName` | string |

  Inherited From:
    - AvayaClientServices.Services.Participant#setDisplayName

### Callbacks

#### addOnParticipantMatchedContactsChangedCallback(callback) → {void}

  Adds new onParticipantMatchedContactsChangedCallback.

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `callback` | AvayaClientServices.Services.Participant#onParticipantMatchedContactsChangedCallback | Function to be called

  Inherited From:
    - AvayaClientServices.Services.Participant#addOnParticipantMatchedContactsChangedCallback

  ##### Returns:

  { void }

#### removeOnParticipantMatchedContactsChangedCallback(callback) → {void}

  Removes existing onParticipantMatchedContactsChangedCallback.

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `callback` | AvayaClientServices.Services.Participant#onParticipantMatchedContactsChangedCallback | Function to be removed

  Inherited From:
    - AvayaClientServices.Services.Participant#removeOnParticipantMatchedContactsChangedCallback

  ##### Returns:

  { void }

### Capabilities

#### getAssignParticipantAsLecturerCapability() → {AvayaClientServices.Base.Capability}

  Returns the capability indicating if the participant can become a lecturer.

  ##### Returns:

  { AvayaClientServices.Base.Capability }

#### getBlockParticipantVideoCapability() → {AvayaClientServices.Base.Capability}

  Returns the capability indicating if the video of participant can be blocked.

  ##### Returns:

  { AvayaClientServices.Base.Capability }

#### getChangeParticipantNameCapability() → {AvayaClientServices.Base.Capability}

  Returns the capability indicating if the participant can change another participant name(if first one is owner of VRM)

  ##### Returns:

  { AvayaClientServices.Base.Capability }

#### getChangeRoleCapability() → {AvayaClientServices.Base.Capability}

  Returns the capability indicating if the participant's role can be changed.

  ##### Returns:

  { AvayaClientServices.Base.Capability }

#### getLowerParticipantHandCapability() → {AvayaClientServices.Base.Capability}

  Returns the capability indicating if the participant's hand can be lowered.

  ##### Returns:

  { AvayaClientServices.Base.Capability }

#### getMuteParticipantAudioCapability() → {AvayaClientServices.Base.Capability}

  Returns the capability indicating if the audio of participant can be muted.

  ##### Returns:

  { AvayaClientServices.Base.Capability }

#### getRemoteCameraControlCapability() → {AvayaClientServices.Base.Capability}

  Returns the capability indicating if the participant's remote camera can be controlled.

  ##### Returns:

  { AvayaClientServices.Base.Capability }

#### getUnblockParticipantVideoCapability() → {AvayaClientServices.Base.Capability}

  Returns the capability indicating if the video of participant can be unblocked.

  ##### Returns:

  { AvayaClientServices.Base.Capability }

#### getUnmuteParticipantAudioCapability() → {AvayaClientServices.Base.Capability}

  Returns the capability indicating if the audio of participant can be unmuted.

  ##### Returns:

  { AvayaClientServices.Base.Capability }

## Type Definitions

#### onParticipantMatchedContactsChangedCallback(participant) → {void}

  Interface for callback function to be invoked when matched contacts for this participant are changed.

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `participant` | AvayaClientServices.Services.Participant | Participant the matched contacts of which were changed

  Inherited From:
    - AvayaClientServices.Services.Participant#onParticipantMatchedContactsChangedCallback

  ##### Returns:

  { void }