תמיכת The Movie Database

Hi,

I'm developping an Android app and I need to create a detailed view for a TV series or a movie. The following code to get a specific MovieDb object from its id works just fine:

TmdbApi api = new TmdbApi(API_KEY);
TmdbMovies tmdbm = new TmdbMovies(api);
MovieDb movie = tmdbm.getMovie(id, LANG, TmdbMovies.MovieMethod.credits);

I tried to do the same for a TVseries object:

TmdbApi api = new TmdbApi(API_KEY);
TmdbTV tmdbtv = new TmdbTV(api);
TVSeries tvSerie = tmdbtv.getSeries(id, LANG, TmdbTV.TvMethod.credits);

However, it tells me that "TmdbTV(TmdbApi) is not public in TmdbTV; cannot be accessed from outside package". The TmdbTV constructor is indeed not specified as "public" while the TmdbMovies one is "public". I looked for the TmdbPeople constructor too (I will need it later) and it's not "public".

Would it be then possible to make these 2 constructors public? If not, is there another way for me to get a specific TVseries object form its id?

Thank you very much!

תגובה 1 (בדף 1 מתוך 1)

Jump to last post

This isn't supposed to be a problem with TMDb's API. Have you tried contacting the library's author?

P.S - I did check out the source here and yea it is pretty strange that he hasn't specified the constructor as public. If the access modifier isn't explicitly set then it defaults to protected. That is why you can't make that object. Have you tried editing the source and then using it?

.לא מצאת סרט או סדרה? היכנס כדי ליצור אותם

עולמי

s התמקד בשורת החיפוש
p פתח תפריט פרופיל
esc סגור חלון פתוח
? פתח חלון קיצורי דרך של מקלדת

בדפי מדיה

b לך חזרה (או אל הורה אם ישים)
e לך אל דף עריכה

בדפי עונות

(חץ ימני) לך אל העונה הבאה
(חץ שמאלי) לך אל העונה הקודמת

בדפי סדרות

(חץ ימני) לך אל הפרק הבא
(חץ שמאלי) לך אל הפרק הקודם

בכל דפי תמונה

a פתח חלון הוספת תמונה

בכל דפי עריכה

t פתח בוחר תרגום
ctrl+ s הגש טופס

בדפי דיון

n צור דיון חדש
w עורר מעמד צפייה
p עורר ציבורי/פרטי
c עורר סגירה/פתיחה
a פתח פעילות
r השב אל דיון
l לך אל תשובה אחרונה
ctrl+ enter הגש את הודעתך
(חץ ימני) הדף הבא
(חץ שמאלי) הדף הקודם

הגדרות

?רוצה לדרג או להוסיף פריט אל רשימה

היכנס