Ejemplo n.º 1
0
 public UnifiedCommentContract(Comment comment, ContentLanguagePreference languagePreference)
     : base(comment)
 {
     Entry        = new EntryRefWithNameContract(comment.Entry, languagePreference);
     ArtistString = GetArtistString(comment.Entry, languagePreference);
     SongThumbUrl = GetSongThumbUrl(comment.Entry);
 }
Ejemplo n.º 2
0
 public UnifiedCommentContract(Comment comment, ContentLanguagePreference languagePreference)
     : base(comment)
 {
     Entry = new EntryRefWithNameContract(comment.Entry, languagePreference);
     ArtistString = GetArtistString(comment.Entry, languagePreference);
     SongThumbUrl = GetSongThumbUrl(comment.Entry);
 }
Ejemplo n.º 3
0
        public EntryReportContract(EntryReport report, ContentLanguagePreference languagePreference)
        {
            ParamIs.NotNull(() => report);

            Created = report.Created;
            Entry = new EntryRefWithNameContract(report.EntryBase, languagePreference);
            Hostname = report.Hostname;
            Id = report.Id;
            Notes = report.Notes;
            User = (report.User != null ? new UserBaseContract(report.User) : null);
        }
Ejemplo n.º 4
0
        public EntryReportContract(EntryReport report, ContentLanguagePreference languagePreference)
        {
            ParamIs.NotNull(() => report);

            Created  = report.Created;
            Entry    = new EntryRefWithNameContract(report.EntryBase, languagePreference);
            Hostname = report.Hostname;
            Id       = report.Id;
            Notes    = report.Notes;
            User     = (report.User != null ? new UserWithEmailContract(report.User) : null);
        }