コード例 #1
0
        public bool AddMovieBookmark(int movieID)
        {
            this.CheckAppKey();
            this.CheckLoggedIn();

            if (movieID < 0)
            {
                throw new ArgumentException("Movie id should be greater than 0.");
            }
            else
            {
                try
                {
                    var req = YifyAPI.GetAddMovieBookmarkReqeust(this.appKey, this.userKey, movieID);
                    var res = YifyAPI.SendPostRequest(req);

                    var xDoc = _parser.ToResponse(res);
                    return(true);
                }
                catch (Exception ex) { throw new YifyException("An error occurred. See inner exception for more details", ex); }
            }
        }