示例#1
0
        public bool Equals(AudioDrama other)
        {
            var dtoEqual      = AudioDramaDto.Equals(other.AudioDramaDto);
            var userDataEqual = AudioDramaUserData.Equals(other.AudioDramaUserData);
            var bothEqual     = dtoEqual && userDataEqual;

            return(bothEqual);
        }
示例#2
0
 public bool IsReleased(AudioDramaDto dto)
 {
     return(dto.ReleaseDate.Date <= DateTime.Now.Date);
 }
示例#3
0
 public string ToSearchString()
 {
     return(AudioDramaDto.ToSearchString());
 }
示例#4
0
 public AudioDrama(AudioDramaDto audioDramaDto, AudioDramaUserData audioDramaUserData)
 {
     AudioDramaDto      = audioDramaDto;
     AudioDramaUserData = audioDramaUserData;
 }