Example #1
0
        public static VimeoVideosResponse Parse(JsonObject obj)
        {
            // Check if NULL
            if (obj == null)
            {
                return(null);
            }

            // Initialize the response object (and some basic parsing)
            VimeoVideosResponse response = new VimeoVideosResponse();

            response.ParseResponse(obj);

            // Get the "videos" object
            JsonObject videos = obj.GetObject("videos");

            if (videos == null)
            {
                return(null);
            }

            // More parsing
            response.OnThisPage = videos.GetInt32("on_this_page");
            response.Page       = videos.GetInt32("page");
            response.PerPage    = videos.GetInt32("perpage");
            response.Total      = videos.GetInt32("total");
            response.Videos     = ParseVideos(videos);

            // Return the response object
            return(response);
        }
        public static VimeoVideosResponse Parse(JsonObject obj) {

            // Check if NULL
            if (obj == null) return null;

            // Initialize the response object (and some basic parsing)
            VimeoVideosResponse response = new VimeoVideosResponse();
            response.ParseResponse(obj);

            // Get the "videos" object
            JsonObject videos = obj.GetObject("videos");
            if (videos == null) return null;

            // More parsing
            response.OnThisPage = videos.GetInt("on_this_page");
            response.Page = videos.GetInt("page");
            response.PerPage = videos.GetInt("perpage");
            response.Total = videos.GetInt("total");
            response.Videos = ParseVideos(videos);

            // Return the response object
            return response;
        
        }