private void Subscriber(CommentEvent param) { var commentId = param.Comment.id.ToString(); switch (param.Type) { case CommentEventType.Delete: DataRequester.DeleteComment(commentId); break; case CommentEventType.Like: if (param.IsLike) { DataRequester.LikeComment(commentId); } else { DataRequester.UnlikeComment(commentId); } break; } }