package com.edufound.reader.contract; import android.app.Activity; import android.view.ViewGroup; import android.widget.FrameLayout; import com.edufound.reader.base.BaseView; import com.okhttplib.callback.Callback; import androidx.recyclerview.widget.RecyclerView; public interface CommentContract { interface Model { void getCommentAll(Activity activity, String exampleId, String pageIndex, Callback callback); void doPosts(Activity activity, String json, Callback callback); void doLikc(Activity activity, String postsId, Callback callback); void doReplyComment(Activity activity, String json, Callback callback); } interface View extends BaseView { void getCommentAllSuccess(); void setMaxCommentCount(int count); void editRequestFocus(); void moveRecyclearView(int scroll); void doPostsSuccess(); } interface Presenter { void initComment(RecyclerView rv, FrameLayout noCommentLayout); void getAllComment(String exampleId, String pageIndex); void doPosts(String comment); void doLike(android.view.View chageView, String postsId, int position); void doReplyComment(String content); String getReCommentId(); void clearReCommentId(); void activityDestory(); void sendBackReceiver(); } }