/// <summary>
        /// Renders the specified media.
        /// </summary>
        /// <param name="media">The media.</param>
        /// <param name="user">The user.</param>
        /// <param name="host">The host.</param>
        /// <returns></returns>
        public string Render(List<Media> media, User user, string host)
        {
            Atom atom = new Atom
                            {
                                Id = Guid.NewGuid().ToString(),
                                AuthorName = user.DisplayName,
                                Title = user.DisplayName + "'s Memorable Moments",
                                Link = host + user.Username,
                                UpdatedDate = DateTime.UtcNow
                            };

            PopulateAtomEntry(host, media, atom, user);
            return atom.ToString();
        }
Beispiel #2
0
        /// <summary>
        /// Renders the specified media.
        /// </summary>
        /// <param name="media">The media.</param>
        /// <param name="user">The user.</param>
        /// <param name="host">The host.</param>
        /// <returns></returns>
        public string Render(List <Media> media, User user, string host)
        {
            Atom atom = new Atom
            {
                Id          = Guid.NewGuid().ToString(),
                AuthorName  = user.DisplayName,
                Title       = user.DisplayName + "'s Memorable Moments",
                Link        = host + user.Username,
                UpdatedDate = DateTime.UtcNow
            };


            PopulateAtomEntry(host, media, atom, user);
            return(atom.ToString());
        }