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.
31 lines
854 B
31 lines
854 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;
|
|
|
|
/**
|
|
* 我的访客UI数据管理
|
|
*/
|
|
public class VisitorMyViewModel extends BaseViewModel<VisitorMyRequest> {
|
|
|
|
//我的访客数据请求状态
|
|
private MutableLiveData<VisitorMyResponse> visitorMyResponse = new MutableLiveData<>();
|
|
|
|
MutableLiveData<VisitorMyResponse> getVisitorMyResponse() {
|
|
return visitorMyResponse;
|
|
}
|
|
|
|
/**
|
|
* 加载我的访客
|
|
*/
|
|
void loadMy(String startDate, String endDate) {
|
|
getRequest().loadMy(visitorMyResponse, startDate, endDate);
|
|
}
|
|
|
|
@Override
|
|
protected VisitorMyRequest getRequest() {
|
|
return VisitorMyRequest.getInstance();
|
|
}
|
|
}
|
|
|