Example #1
0
 // Public properties.
 /// <summary>
 /// Abstract method to create a feed entry based on an atom instance.
 /// </summary>
 /// <param name="atom">The atom instance.</param>
 /// <returns>The feed entry.</returns>
 public abstract Entry Create(InetApi.YouTube.Api.V2.Atom.Atom atom);
Example #2
0
 /// <summary>
 /// Creates a new comment entry from an atom instance.
 /// </summary>
 /// <param name="atom">The atom instance.</param>
 /// <returns>A comment object.</returns>
 public override Entry Create(InetApi.YouTube.Api.V2.Atom.Atom atom)
 {
     return new Comment(atom as AtomEntryComment);
 }
Example #3
0
 /// <summary>
 /// Creates a new video entry from an atom instance.
 /// </summary>
 /// <param name="atom">The atom instance.</param>
 /// <returns>The video entry.</returns>
 public override Entry Create(InetApi.YouTube.Api.V2.Atom.Atom atom)
 {
     return new Video(atom as AtomEntryVideo);
 }
 /// <summary>
 /// Creates a new exception instance.
 /// </summary>
 /// <param name="message">The exception message.</param>
 /// <param name="innerException">The inner exception.</param>
 /// <param name="atom">The atom.</param>
 public YouTubeAtomException(string message, Exception innerException, InetApi.YouTube.Api.V2.Atom.Atom atom)
     : base(message, innerException)
 {
     this.atom = atom;
 }
Example #5
0
 /// <summary>
 /// Creates a new playlist entry from an atom instance.
 /// </summary>
 /// <param name="atom">The atom instance.</param>
 /// <returns>A playlist object.</returns>
 public override Entry Create(InetApi.YouTube.Api.V2.Atom.Atom atom)
 {
     return new Playlist(atom as AtomEntryPlaylist);
 }