Package io.rong.imlib.model

## Class UserOnlineStatusInfo

- All Implemented Interfaces:

      public class UserOnlineStatusInfo

  用户在线状态信息类

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---
    `public enum` | `UserOnlineStatusInfo.PlatformInfo` |

  - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---
    `public int` | `serviceStatus` |
    `public int` | `customerStatus` |
    `public UserOnlineStatusInfo.PlatformInfo` | `platform` |

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `UserOnlineStatusInfo(JSONObject jsonObject, int index)` |

  - ### Enum Constant Summary

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

  - ### Method Summary

    Modifier and Type | Method | Description
    --- | --- | ---
    `int` | `getServiceStatus()` | 获取取融云服务在线状态
    `int` | `getCustomerStatus()` | 获取用户自定义的在线状态
    `UserOnlineStatusInfo.PlatformInfo` | `getPlatform()` | 获取登录平台

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

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

- - ### Constructor Detail

    - #### UserOnlineStatusInfo

          UserOnlineStatusInfo(JSONObject jsonObject, int index)

  - ### Method Detail

    - #### getServiceStatus

           int getServiceStatus()

      获取取融云服务在线状态

      Returns:

        在线状态 0:离线, 1:在线

    - #### getCustomerStatus

           int getCustomerStatus()

      获取用户自定义的在线状态

      Returns:

        在线状态. 如果离线返回 0 ;在线未通过 setUserOnlineStatus 设置用户在线状态, 返回 1; 通过 setUserOnlineStatus 设置过状态则返回设置的值 `1 < customerStatus <= 255`

    - #### getPlatform

           UserOnlineStatusInfo.PlatformInfo getPlatform()

      获取登录平台

      Returns:

        用户所登录在线的平台