CommentContract.java 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. package com.edufound.reader.contract;
  2. import android.app.Activity;
  3. import android.view.ViewGroup;
  4. import android.widget.FrameLayout;
  5. import com.edufound.reader.base.BaseView;
  6. import com.okhttplib.callback.Callback;
  7. import androidx.recyclerview.widget.RecyclerView;
  8. public interface CommentContract {
  9. interface Model {
  10. void getCommentAll(Activity activity, String exampleId, String pageIndex, Callback callback);
  11. void doPosts(Activity activity, String json, Callback callback);
  12. void doLikc(Activity activity, String postsId, Callback callback);
  13. void doReplyComment(Activity activity, String json, Callback callback);
  14. }
  15. interface View extends BaseView {
  16. void getCommentAllSuccess();
  17. void setMaxCommentCount(int count);
  18. void editRequestFocus();
  19. void moveRecyclearView(int scroll);
  20. void doPostsSuccess();
  21. }
  22. interface Presenter {
  23. void initComment(RecyclerView rv, FrameLayout noCommentLayout);
  24. void getAllComment(String exampleId, String pageIndex);
  25. void doPosts(String comment);
  26. void doLike(android.view.View chageView, String postsId, int position);
  27. void doReplyComment(String content);
  28. String getReCommentId();
  29. void clearReCommentId();
  30. void activityDestory();
  31. void sendBackReceiver();
  32. }
  33. }