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

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

            response.ParseResponse(obj);

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

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

            // More parsing
            response.OnThisPage = channels.GetInt32("on_this_page");
            response.Page       = channels.GetInt32("page");
            response.PerPage    = channels.GetInt32("perpage");
            response.Total      = channels.GetInt32("total");
            response.Channels   = ParseChannels(channels);

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

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

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

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

            // More parsing
            response.OnThisPage = channels.GetInt32("on_this_page");
            response.Page = channels.GetInt32("page");
            response.PerPage = channels.GetInt32("perpage");
            response.Total = channels.GetInt32("total");
            response.Channels = ParseChannels(channels);

            // Return the response object
            return response;

        }