public override bool IsDuplicate(ActivityEntry entry) { var editedEntry = (EntryEditedEntry)entry; if (editedEntry == null) return false; return (editedEntry.Author.Equals(Author) && editedEntry.EntryRef.Equals(EntryRef)); }
public ActivityEntryContract(ActivityEntry entry, ContentLanguagePreference languagePreference) { ParamIs.NotNull(() => entry); ArtistString = GetArtistString(entry.EntryBase, languagePreference); Author = new UserContract(entry.Author); CreateDate = entry.CreateDate; EditEvent = entry.EditEvent; EntryRef = new EntryRefWithNameContract(entry.EntryBase, languagePreference); SongThumbUrl = GetSongThumbUrl(entry.EntryBase); }
public override bool IsDuplicate(ActivityEntry entry) { var editedEntry = (EntryEditedEntry)entry; if (editedEntry == null) { return(false); } return(editedEntry.Author.Equals(Author) && editedEntry.EntryRef.Equals(EntryRef)); }
public virtual bool IsDuplicate(ActivityEntry entry) { return(Author.Equals(entry.Author) && EntryBase.Equals(entry.EntryBase)); }
public virtual bool IsDuplicate(ActivityEntry entry) { return (Author.Equals(entry.Author) && EntryBase.Equals(entry.EntryBase)); }