Logo Search packages:      
Sourcecode: gdata-sharp version File versions  Download package

Feed<Video> Google::YouTube::YouTubeRequest::GetVideoMetaData ( List< Activity list  )  [inline]

Takes a list of activities, and get's the video meta data from youtube for those activites that identify a video.

Parameters:
list a list of activities
Returns:
a video feed, with no entries, if there were no video related activities

Definition at line 1343 of file youtuberequest.cs.

References Google::GData::Client::Entry::Id.

        {
            Feed<Video> meta = null;
            if (list.Count > 0)
            {
                List<Video> videos = new List<Video>();

                foreach (Activity a in list)
                {
                    if (a.VideoId != null)
                    {
                        Video v = new Video();
                        v.Id = YouTubeQuery.CreateVideoUri(a.VideoId);
                        videos.Add(v);
                    }
                }

                if (videos.Count > 0)
                {
                    meta = this.Batch(videos, new Uri(YouTubeQuery.BatchVideoUri), GDataBatchOperationType.query);
                }
            }

            return meta == null? new Feed<Video>(null) : meta ; 
        }


Generated by  Doxygen 1.6.0   Back to index