You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
975 B
33 lines
975 B
package com.community.pocket.ui.main.ui.visitor.my;
|
|
|
|
import androidx.lifecycle.MutableLiveData;
|
|
|
|
import com.community.pocket.data.main.visitor.VisitorMyRequest;
|
|
import com.community.pocket.ui.main.ui.share.BaseViewModel;
|
|
import com.community.pocket.ui.main.ui.visitor.VisitorLoad;
|
|
|
|
/**
|
|
* 我的访客UI数据管理
|
|
*/
|
|
public class VisitorMyViewModel extends BaseViewModel<VisitorMyRequest> implements VisitorLoad {
|
|
|
|
//我的访客数据请求状态
|
|
private MutableLiveData<VisitorMyResponse> visitorMyResponse = new MutableLiveData<>();
|
|
|
|
MutableLiveData<VisitorMyResponse> getVisitorMyResponse() {
|
|
return visitorMyResponse;
|
|
}
|
|
|
|
/**
|
|
* 加载我的访客
|
|
*/
|
|
@Override
|
|
public void loadMy(String startDate, String endDate, Long page) {
|
|
getRequest().loadMy(visitorMyResponse, startDate, endDate, page);
|
|
}
|
|
|
|
@Override
|
|
protected VisitorMyRequest getRequest() {
|
|
return VisitorMyRequest.getInstance();
|
|
}
|
|
}
|
|
|