Skip to content

Commit 4c08dcf

Browse files
committed
searchfilters: an enum class which with strings ids that will be used within the searchfilters
The class LibraryStringIds is a enum. This enum's identify a message. The name of the enum constants reflect the actual message. This message has to be transformed by the library user into a meaningful string.
1 parent 51ca6d0 commit 4c08dcf

File tree

1 file changed

+90
-0
lines changed

1 file changed

+90
-0
lines changed
Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
// Created by evermind-zz 2022, licensed GNU GPL version 3 or later
2+
3+
package org.schabi.newpipe.extractor.search.filter;
4+
5+
/**
6+
* 'strings' are used within the library, especially in classes derived
7+
* from {@link BaseSearchFilters}.
8+
* <p>
9+
* We use an enum to identify the message. The name of the enum constants
10+
* reflect the actual message. This message has to be transformed by the
11+
* library user into a meaningful string.
12+
*
13+
* <b>NOTE:</b> Behind each listed enum the actual string is in a comment that the
14+
* library user should translate/use.
15+
*/
16+
public enum LibraryStringIds {
17+
SEARCH_FILTERS_10_30_MIN, /* 10-30 min */
18+
SEARCH_FILTERS_2_10_MIN, /* 2-10 min */
19+
SEARCH_FILTERS_360, /* 360° */
20+
SEARCH_FILTERS_3D, /* 3d */
21+
SEARCH_FILTERS_4_20_MIN, /* 4-20 min */
22+
SEARCH_FILTERS_4K, /* 4k */
23+
SEARCH_FILTERS_ADDED, /* Added */
24+
SEARCH_FILTERS_ALBUMS, /* albums */
25+
SEARCH_FILTERS_ALL, /* all */
26+
SEARCH_FILTERS_ANY_TIME, /* Any time */
27+
SEARCH_FILTERS_ARTISTS, /* artists */
28+
SEARCH_FILTERS_ARTISTS_AND_LABELS, /* artists & labels */
29+
SEARCH_FILTERS_ASCENDING, /* Ascending */
30+
SEARCH_FILTERS_CCOMMONS, /* Ccommons */
31+
SEARCH_FILTERS_CHANNELS, /* Channels */
32+
SEARCH_FILTERS_CONFERENCES, /* conferences */
33+
SEARCH_FILTERS_CREATION_DATE, /* Creation date */
34+
SEARCH_FILTERS_DATE, /* Date */
35+
SEARCH_FILTERS_DURATION, /* Duration */
36+
SEARCH_FILTERS_EVENTS, /* events */
37+
SEARCH_FILTERS_FEATURES, /* Features */
38+
SEARCH_FILTERS_GREATER_30_MIN, /* > 30 min */
39+
SEARCH_FILTERS_HD, /* HD */
40+
SEARCH_FILTERS_HDR, /* Hdr */
41+
SEARCH_FILTERS_KIND, /* Kind */
42+
SEARCH_FILTERS_LAST_30_DAYS, /* Last 30 days */
43+
SEARCH_FILTERS_LAST_7_DAYS, /* Last 7 days */
44+
SEARCH_FILTERS_LAST_HOUR, /* Last hour */
45+
SEARCH_FILTERS_LAST_YEAR, /* Last year */
46+
SEARCH_FILTERS_LENGTH, /* Length */
47+
SEARCH_FILTERS_LESS_2_MIN, /* < 2 min */
48+
SEARCH_FILTERS_LICENSE, /* License */
49+
SEARCH_FILTERS_LIKES, /* Likes */
50+
SEARCH_FILTERS_LIVE, /* Live */
51+
SEARCH_FILTERS_LOCATION, /* Location */
52+
SEARCH_FILTERS_LONG_GREATER_10_MIN, /* Long (> 10 min) */
53+
SEARCH_FILTERS_MEDIUM_4_10_MIN, /* Medium (4-10 min) */
54+
SEARCH_FILTERS_NAME, /* Name */
55+
SEARCH_FILTERS_NO, /* No */
56+
SEARCH_FILTERS_OVER_20_MIN, /* Over 20 min */
57+
SEARCH_FILTERS_PAST_DAY, /* Past day */
58+
SEARCH_FILTERS_PAST_HOUR, /* Past hour */
59+
SEARCH_FILTERS_PAST_MONTH, /* Past month */
60+
SEARCH_FILTERS_PAST_WEEK, /* Past week */
61+
SEARCH_FILTERS_PAST_YEAR, /* Past year */
62+
SEARCH_FILTERS_PLAYLISTS, /* Playlists */
63+
SEARCH_FILTERS_PUBLISH_DATE, /* Publish date */
64+
SEARCH_FILTERS_PUBLISHED, /* Published */
65+
SEARCH_FILTERS_RATING, /* Rating */
66+
SEARCH_FILTERS_RELEVANCE, /* Relevance */
67+
SEARCH_FILTERS_SENSITIVE, /* Sensitive */
68+
SEARCH_FILTERS_SEPIASEARCH, /* SepiaSearch */
69+
SEARCH_FILTERS_SHORT_LESS_4_MIN, /* Short (< 4 min) */
70+
SEARCH_FILTERS_SONGS, /* songs */
71+
SEARCH_FILTERS_SORT_BY, /* Sort by */
72+
SEARCH_FILTERS_SORT_ORDER, /* Sort order */
73+
SEARCH_FILTERS_SUBTITLES, /* Subtitles */
74+
SEARCH_FILTERS_TO_MODIFY_COMMERCIALLY, /* To modify commercially */
75+
SEARCH_FILTERS_TODAY, /* Today */
76+
SEARCH_FILTERS_TRACKS, /* tracks */
77+
SEARCH_FILTERS_UNDER_4_MIN, /* Under 4 min */
78+
SEARCH_FILTERS_UPLOAD_DATE, /* Upload Date */
79+
SEARCH_FILTERS_USERS, /* users */
80+
SEARCH_FILTERS_VIDEOS, /* Videos */
81+
SEARCH_FILTERS_VIEWS, /* Views */
82+
SEARCH_FILTERS_VOD_VIDEOS, /* VOD videos */
83+
SEARCH_FILTERS_VR180, /* VR180 */
84+
SEARCH_FILTERS_THIS_MONTH, /* This month */
85+
SEARCH_FILTERS_THIS_WEEK, /* This week */
86+
SEARCH_FILTERS_THIS_YEAR, /* This year */
87+
SEARCH_FILTERS_YES, /* Yes */
88+
SEARCH_FILTERS_YOUTUBE_MUSIC, /* YouTube Music */
89+
SEARCH_FILTERS_PURCHASED, /* Purchased */
90+
}

0 commit comments

Comments
 (0)