# Class: ThumbnailCreator

## Constructor

#### new ThumbnailCreator(config)

  ##### Parameters:

  Name | Type | Argument | Description
  --- | --- | --- | ---
  `config` | Object | Object | Object | <optional> |

## Methods

#### create(attachment, config) → {AvayaClientServices.Base.Promise|Boolean}

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `attachment` | AvayaClientServices.Services.Messaging.Attachment |
  `config` | Object | Object | Object |

  ##### Returns:

  { AvayaClientServices.Base.Promise | Boolean }

#### getConfig() → {Object|Object|Object}

  ##### Returns:

  { Object | Object | Object }

#### registerCreator(mimeType, creator)

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `mimeType` | String |
  `creator` | AvayaClientServices.Services.Messaging.AbstractThumbnailCreator |

#### setConfig(config)

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `config` |  |

#### unregisterCreator(mimeType)

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `mimeType` | String |