Class GroupCreateViewModel
-
- All Implemented Interfaces:
public class GroupCreateViewModel extends BaseViewModel
ViewModel for creating a group.
- Since:
5.12.0
-
-
Field Summary
Fields Modifier and Type Field Description public final StringgroupIdprotected final GroupOperationsHandlergroupOperationsHandlerprotected final MutableLiveData<ErrorEvent<NCError>>errorEventLiveData
-
Constructor Summary
Constructors Constructor Description GroupCreateViewModel(Bundle arguments)
-
Method Summary
Modifier and Type Method Description StringgetGroupId()Get the group ID. voidcreateGroup(String groupName, OnDataChangeListener<Integer> listener)Create a group. voidcreateGroup(String groupName, OnDataChangeEnhancedListener<Integer> listener)Create a group with examination. voidonCleared()-
Methods inherited from class ai.nexconn.chatui.base.BaseViewModel
getArguments, getErrorEventLiveData, postErrorEvent -
Methods inherited from class androidx.lifecycle.ViewModel
addCloseable -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getGroupId
String getGroupId()
Get the group ID.
- Returns:
group ID
-
createGroup
@Deprecated() void createGroup(String groupName, OnDataChangeListener<Integer> listener)
Create a group.
- Parameters:
groupName- group namelistener- data change listener
-
createGroup
void createGroup(String groupName, OnDataChangeEnhancedListener<Integer> listener)
Create a group with examination.
- Parameters:
groupName- group namelistener- data change listener
-
onCleared
void onCleared()
-
-
-
-