Package io.rong.imkit.model

## Class ConversationKey

- All Implemented Interfaces:

      public final class ConversationKey

  Created by zhjchen on 4/29/15.

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---

  - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---
    `public String` | `key` |
    `public String` | `targetId` |
    `public ConversationType` | `type` |

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---

  - ### Enum Constant Summary

    Enum Constants
    Enum Constant | Description
    --- | ---

  - ### Method Summary

    Modifier and Type | Method | Description
    --- | --- | ---
    `String` | `getKey()` |
    `void` | `setKey(String key)` |
    `String` | `getTargetId()` |
    `void` | `setTargetId(String targetId)` |
    `ConversationType` | `getType()` |
    `void` | `setType(ConversationType type)` |
    `static ConversationKey` | `obtain(String targetId, ConversationType type)` |
    `static ConversationKey` | `obtain(String key)` |

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

  - ### Method Detail

    - #### getKey

           String getKey()

    - #### setKey

           void setKey(String key)

    - #### getTargetId

           String getTargetId()

    - #### setTargetId

           void setTargetId(String targetId)

    - #### getType

           ConversationType getType()

    - #### setType

           void setType(ConversationType type)

    - #### obtain

           static ConversationKey obtain(String targetId, ConversationType type)

    - #### obtain

           static ConversationKey obtain(String key)