Package io.rong.push.pushconfig

## Class PushConfigCenter

- All Implemented Interfaces:

      public class PushConfigCenter

  用来进行推送初始化配置的主要管理类

  Author:

    zoulu

- - ### Nested Class Summary

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

  - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `PushConfigCenter()` |

  - ### Enum Constant Summary

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

  - ### Method Summary

    Modifier and Type | Method | Description
    --- | --- | ---
    `List<PushType>` | `getPreferPushType(Context context, PushConfig pushConfig)` | 获取适合的推送类型 根据手机机型和用户 enable 适配的推送类型
    `boolean` | `isNeedReportToken(Context context, PushType pushType, String token)` | 判断是否需要上传 token
    `static String` | `getToken(List<TokenBean> list, PushType type)` |
    `static void` | `updateTokenBean(List<TokenBean> list, PushType type, String token)` |
    `static List<TokenBean>` | `updateTokenBeanReport(List<TokenBean> list, Map<String, String> failMap)` |
    `static boolean` | `containsType(List<TokenBean> list, PushType type)` |

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

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

- - ### Constructor Detail

    - #### PushConfigCenter

          PushConfigCenter()

  - ### Method Detail

    - #### getPreferPushType

           List<PushType> getPreferPushType(Context context, PushConfig pushConfig)

      获取适合的推送类型 根据手机机型和用户 enable 适配的推送类型

    - #### isNeedReportToken

           boolean isNeedReportToken(Context context, PushType pushType, String token)

      判断是否需要上传 token

    - #### getToken

           static String getToken(List<TokenBean> list, PushType type)

    - #### updateTokenBean

           static void updateTokenBean(List<TokenBean> list, PushType type, String token)

    - #### updateTokenBeanReport

           static List<TokenBean> updateTokenBeanReport(List<TokenBean> list, Map<String, String> failMap)

    - #### containsType

           static boolean containsType(List<TokenBean> list, PushType type)