Package io.rong.imkit.usermanage.friend.apply

## Class ApplyFriendViewModel

- All Implemented Interfaces:

      public class ApplyFriendViewModel

  申请好友列表页面ViewModel

  Since:

    5.12.0

  Author:

    rongcloud

- - ### Nested Class Summary

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

  - ### Field Summary

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

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `ApplyFriendViewModel(Bundle bundle)` |

  - ### Enum Constant Summary

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

  - ### Method Summary

    Modifier and Type | Method | Description
    --- | --- | ---
    `MutableLiveData<List<UiFriendApplicationInfo>>` | `getFriendApplicationsLiveData()` |
    `void` | `loadFriendApplications(int type)` |
    `void` | `loadFriendApplications(boolean isLoadMore)` |
    `void` | `)>acceptFriendApplication(String userId, OnDataChangeListener<Boolean> callback)` |
    `void` | `)>refuseFriendApplication(String userId, OnDataChangeListener<Boolean> callback)` |

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

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

- - ### Constructor Detail

    - #### ApplyFriendViewModel

          ApplyFriendViewModel(Bundle bundle)

  - ### Method Detail

    - #### getFriendApplicationsLiveData

           MutableLiveData<List<UiFriendApplicationInfo>> getFriendApplicationsLiveData()

    - #### loadFriendApplications

           void loadFriendApplications(int type)

      Parameters:
        `type` - 0=all,1=received,2=sent

    - #### loadFriendApplications

           void loadFriendApplications(boolean isLoadMore)

    - #### acceptFriendApplication

           void )>acceptFriendApplication(String userId, OnDataChangeListener<Boolean> callback)

    - #### refuseFriendApplication

           void )>refuseFriendApplication(String userId, OnDataChangeListener<Boolean> callback)