# Class: Conversation

## Conversation

#### new Conversation()

  Represents a conversation.

  Source:
    - app/model/entities/Conversation.js, line 8

### Methods

#### addMessage(message) → {Conversation}

  Adds a message to conversation.

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `message` | Message |

  Source:
    - app/model/entities/Conversation.js, line 145

  ##### Returns:

  Type
    Conversation

#### getDate() → {String}

  Returns conversation's date and time in UTC and ISO 8601 format.

  Source:
    - app/model/entities/Conversation.js, line 23

  ##### Returns:

  Type
    String

#### getId() → {Number}

  Returns conversation's id.

  Source:
    - app/model/entities/Conversation.js, line 53

  ##### Returns:

  Type
    Number

#### getMessages() → {Array}

  Returns array of Message objects.

  Source:
    - app/model/entities/Conversation.js, line 63

  ##### Returns:

  Type
    Array

#### getNote() → {String}

  Returns note added to conversation.

  Source:
    - app/model/entities/Conversation.js, line 73

  ##### Returns:

  Type
    String

#### getOperator() → {Number}

  Operator id getter.

  Source:
    - app/model/entities/Conversation.js, line 33

  ##### Returns:

  Type
    Number

#### getOperatorName() → {String}

  Returns full name of operator.

  Source:
    - app/model/entities/Conversation.js, line 43

  ##### Returns:

  Type
    String

#### setDate(value) → {Conversation}

  Date setter.

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `value` | String | Date in UTC and ISO 8601 format.

  Source:
    - app/model/entities/Conversation.js, line 85

  ##### Returns:

  Type
    Conversation

#### setId(value) → {Conversation}

  Id setter

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `value` | Number |

  Source:
    - app/model/entities/Conversation.js, line 121

  ##### Returns:

  Type
    Conversation

#### setNote(value) → {Conversation}

  Note setter.

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `value` | String |

  Source:
    - app/model/entities/Conversation.js, line 133

  ##### Returns:

  Type
    Conversation

#### setOperator(value) → {Conversation}

  Operator setter.

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `value` | Number | Id of the operator.

  Source:
    - app/model/entities/Conversation.js, line 97

  ##### Returns:

  Type
    Conversation

#### setOperatorName(value) → {Conversation}

  Operator name setter.

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `value` | String | Operator's full name.

  Source:
    - app/model/entities/Conversation.js, line 109

  ##### Returns:

  Type
    Conversation