| 58 | } |
| 59 | |
| 60 | bool _NetworkResourceRawTO::matchWithFilter(std::string const& filter) const |
| 61 | { |
| 62 | auto match = false; |
| 63 | if (StringHelper::containsCaseInsensitive(timestamp, filter)) { |
| 64 | match = true; |
| 65 | } |
| 66 | if (StringHelper::containsCaseInsensitive(userName, filter)) { |
| 67 | match = true; |
| 68 | } |
| 69 | if (StringHelper::containsCaseInsensitive(resourceName, filter)) { |
| 70 | match = true; |
| 71 | } |
| 72 | if (StringHelper::containsCaseInsensitive(std::to_string(numDownloads), filter)) { |
| 73 | match = true; |
| 74 | } |
| 75 | if (StringHelper::containsCaseInsensitive(std::to_string(width), filter)) { |
| 76 | match = true; |
| 77 | } |
| 78 | if (StringHelper::containsCaseInsensitive(std::to_string(height), filter)) { |
| 79 | match = true; |
| 80 | } |
| 81 | if (StringHelper::containsCaseInsensitive(std::to_string(particles), filter)) { |
| 82 | match = true; |
| 83 | } |
| 84 | if (StringHelper::containsCaseInsensitive(std::to_string(contentSize), filter)) { |
| 85 | match = true; |
| 86 | } |
| 87 | if (StringHelper::containsCaseInsensitive(description, filter)) { |
| 88 | match = true; |
| 89 | } |
| 90 | if (StringHelper::containsCaseInsensitive(version, filter)) { |
| 91 | match = true; |
| 92 | } |
| 93 | return match; |
| 94 | } |
| 95 | |
| 96 | int _NetworkResourceRawTO::getTotalLikes() const |
| 97 | { |
nothing calls this directly
no test coverage detected