示例#1
0
 private string GetSourceFolder(ISerializableItem item)
 {
     if (MatchList.Contains(item))
     {
         return(SerializationHelper.DIR_MATCHES);
     }
     else if (UnmatchedMeList != null && UnmatchedMeList.Contains(item))
     {
         return(SerializationHelper.DIR_UNMATCHED);
     }
     else if (UnmatchedByMeList != null && UnmatchedByMeList.Contains(item))
     {
         return(SerializationHelper.DIR_UNMATCHED_BY_ME);
     }
     else if (RecommendationsPassedList != null && RecommendationsPassedList.Any(x => x.Id == item.Id))
     {
         return(SerializationHelper.DIR_RECS_PASSED);
     }
     else if (RecommendationsPendingList != null && RecommendationsPendingList.Any(x => x.Id == item.Id))
     {
         return(SerializationHelper.DIR_RECS_PENDING);
     }
     return(string.Empty);
 }