private void Subscriber(StoryExtraEvent param) { CommentCount = param.StoryExtraInfo.comments.ToString(); LikeCount = param.StoryExtraInfo.popularity.ToString(); IsLikeButtonChecked = param.StoryExtraInfo.vote_status == 1; IsFavoriteButtonChecked = param.StoryExtraInfo.favorite; }
private void StoryExtraSubscriber(StoryExtraEvent param) { CommentCount = param.StoryExtraInfo.Count.Comments.ToString(); LikeCount = param.StoryExtraInfo.Count.Likes.ToString(); IsLikeButtonChecked = param.StoryExtraInfo.Vote_Status == 1; IsFavoriteButtonChecked = param.StoryExtraInfo.Favorite; }
private void StoryExtraSubscriber(StoryExtraEvent param) { if (CommentList.Count > 1) { CommentList[0].GroupName = StringUtil.GetCommentGroupName(CommentType.Long, CurrentStoryExtraInfo.long_comments.ToString()); CommentList[1].GroupName = StringUtil.GetCommentGroupName(CommentType.Short, CurrentStoryExtraInfo.short_comments.ToString()); } }
private void StoryExtraSubscriber(StoryExtraEvent param) { if (CommentList.Count > 1) { CommentList[0].GroupName = StringUtil.GetCommentGroupName(CommentType.Recommend, CurrentStoryExtraInfo.Count.Post_Reasons.ToString()); CommentList[1].GroupName = StringUtil.GetCommentGroupName(CommentType.Normal, CurrentStoryExtraInfo.Count.Normal_Comments.ToString()); } }