# Class: Message

## Message

#### new Message()

  Represents a conversation's message.

  Source:
    - app/model/entities/Message.js, line 7

### Members

#### <static> AUTHOR_OP :String

  Constant. Identification of message's author - operator.

  ##### Type:

  - String
  Source:
    - app/model/entities/Message.js, line 26

#### <static> AUTHOR_USER :String

  Constant. Identification of message's author - customer.

  ##### Type:

  - String
  Source:
    - app/model/entities/Message.js, line 20

### Methods

#### getAuthor() → {String}

  Author identification

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

  ##### Returns:

  Message.AUTHOR_USER or Message.AUTHOR_OP

  Type
    String

#### getConversation() → {Number}

  Conversation id getter.

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

  ##### Returns:

  Type
    Number

#### getDate() → {String}

  Date getter.

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

  ##### Returns:

  Date in UTC and ISO 8601 format.

  Type
    String

#### getId() → {Number}

  Id getter

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

  ##### Returns:

  Type
    Number

#### getText() → {String}

  Message text getter

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

  ##### Returns:

  Type
    String

#### setAuthor(value) → {Message}

  Message text setter

  ##### Parameters:

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

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

  ##### Returns:

  Type
    Message

#### setConversation(value) → {Message}

  Conversation id setter

  ##### Parameters:

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

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

  ##### Returns:

  Type
    Message

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

  Date setter

  ##### Parameters:

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

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

  ##### Returns:

  Type
    Message

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

  Id setter

  ##### Parameters:

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

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

  ##### Returns:

  Type
    Message

#### setText(value) → {Message}

  Message text setter

  ##### Parameters:

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

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

  ##### Returns:

  Type
    Message