package com.gh.gamecenter; import android.content.Context; import android.content.Intent; import android.os.Bundle; import com.gh.common.util.EntranceUtils; import com.gh.gamecenter.entity.LinkEntity; import com.gh.gamecenter.entity.MessageEntity; import com.gh.gamecenter.qa.comment.CommentActivity; import com.gh.gamecenter.qa.comment.NewCommentConversationFragment; import com.halo.assistant.fragment.comment.CommentDetailFragment; /** * Created by khy on 2017/3/22. */ public class CommentDetailActivity extends NormalActivity { // article 不为空则显示跳转原文按钮 public static Intent getIntent(Context context, String commentId, MessageEntity.Article article) { Bundle args = new Bundle(); args.putString(EntranceUtils.KEY_COMMENTID, commentId); args.putParcelable(MessageEntity.Article.TAG, article); return getTargetIntent(context, CommentDetailActivity.class, CommentDetailFragment.class, args); } public static Intent getAnswerCommentIntent(Context context, String commentId, String answerId, LinkEntity linkEntity) { Bundle args = new Bundle(); args.putString(EntranceUtils.KEY_COMMENTID, commentId); args.putString(EntranceUtils.KEY_ANSWER_ID, answerId); args.putParcelable(EntranceUtils.KEY_LINK, linkEntity); return getTargetIntent(context, CommentDetailActivity.class, NewCommentConversationFragment.class, args); } public static Intent getCommunityArticleCommentIntent(Context context, String articleId, String articleCommentId, String communityId, LinkEntity linkEntity) { Bundle args = new Bundle(); args.putString(CommentActivity.ARTICLE_ID, articleId); args.putString(EntranceUtils.KEY_COMMENTID, articleCommentId); args.putString(CommentActivity.COMMUNITY_ID, communityId); args.putParcelable(EntranceUtils.KEY_LINK, linkEntity); return getTargetIntent(context, CommentDetailActivity.class, NewCommentConversationFragment.class, args); } public static Intent getVideoCommentIntent(Context context, String commentId, String videoId, LinkEntity linkEntity) { Bundle args = new Bundle(); args.putString(EntranceUtils.KEY_COMMENTID, commentId); args.putString(CommentActivity.VIDEO_ID, videoId); args.putParcelable(EntranceUtils.KEY_LINK, linkEntity); return getTargetIntent(context, CommentDetailActivity.class, NewCommentConversationFragment.class, args); } }