diff -r 000000000000 -r 249d70e7b32d client/src/Iri.Modernisation.Data/Models/VideoBook.cs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/client/src/Iri.Modernisation.Data/Models/VideoBook.cs Wed Nov 18 15:30:31 2009 +0100 @@ -0,0 +1,70 @@ +using System; +using System.Net; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Documents; +using System.Windows.Ink; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Animation; +using System.Windows.Shapes; +using System.Collections.Generic; +namespace Iri.Modernisation.Data.Models +{ + /// + /// Classe VideoLivre + /// + public class VideoBook + { + /// + /// Titre du VideoLivre + /// + public String Title { get; set; } + + /// + /// Auteur du VideoLivre + /// + public User Author { get; set; } + + /// + /// Chapitre du VideoLivre + /// + public VideoChapter[] Chapters { get; set; } + + /// + /// Durée du VideoLivre + /// + public TimeSpan Duration { get; set; } + + /// + /// Chemin de la vidéo fini + /// + public String MediaPath { get; set; } + + /// + /// Constructeur par défaut + /// + public VideoBook() + { + Chapters = new VideoChapter[4]; + Chapters[0] = new VideoChapter(this,"Modernisation"); + Chapters[1] = new VideoChapter(this, "Modernité"); + Chapters[2] = new VideoChapter(this, "Post-Modernité"); + Chapters[3] = new VideoChapter(this, "Ouverture"); + + } + + + } + + /// + /// Comparateur pour Trier les livres + /// + public class VideoBookComparer : IComparer + { + public int Compare(VideoBook x, VideoBook y) + { + return x.Title.CompareTo(y.Title); + } + } +}