示例#1
0
        private void LikeArticle()
        {
            if (Check_Login() && apiManager.currentArticle != null)
            {
                InitAppBar(apiManager.currentArticle.is_liked, true);

                if (apiManager.currentArticle.is_liked)
                {
                    apiManager.DeleteLikes(apiManager.currentArticle.id);
                }
                else
                {
                    apiManager.PostLikes(apiManager.currentArticle.id);
                }
            }
        }