// 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);
/// <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); }
/// <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; }
/// <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); }