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);
        }
Beispiel #3
0
        public override bool IsDuplicate(ActivityEntry entry)
        {
            var editedEntry = (EntryEditedEntry)entry;

            if (editedEntry == null)
            {
                return(false);
            }

            return(editedEntry.Author.Equals(Author) && editedEntry.EntryRef.Equals(EntryRef));
        }
Beispiel #4
0
 public virtual bool IsDuplicate(ActivityEntry entry)
 {
     return(Author.Equals(entry.Author) && EntryBase.Equals(entry.EntryBase));
 }
Beispiel #5
0
 public virtual bool IsDuplicate(ActivityEntry entry)
 {
     return (Author.Equals(entry.Author) && EntryBase.Equals(entry.EntryBase));
 }