public UnifiedCommentContract(Comment comment, ContentLanguagePreference languagePreference) : base(comment) { Entry = new EntryRefWithNameContract(comment.Entry, languagePreference); ArtistString = GetArtistString(comment.Entry, languagePreference); SongThumbUrl = GetSongThumbUrl(comment.Entry); }
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); }
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); }