예제 #1
0
        public static VimeoChannelVideosResponse Parse(JsonArray array)
        {
            VimeoChannelVideosResponse response = new VimeoChannelVideosResponse {
                Videos = VimeoVideo.ParseMultiple(array) ?? new VimeoVideo[0]
            };

            return(response);
        }
예제 #2
0
        public static VimeoChannelVideosResponse Parse(XElement xVideos)
        {
            if (xVideos == null || xVideos.Name != "videos")
            {
                return(null);
            }
            VimeoChannelVideosResponse response = new VimeoChannelVideosResponse {
                Videos = VimeoVideo.ParseMultiple(xVideos) ?? new VimeoVideo[0]
            };

            return(response);
        }