Mein Code sieht so aus:
Code: Alles auswählen
import devplugin.beanshell.BeanShellProgramFilterIf;
import devplugin.Program;
import devplugin.ProgramFieldType;
accept(Program p) {
int year = p.gettField(ProgramFieldType.PRODUCTION_YEAR_TYPE);
if (year != null && year > 2017) {
return true;
}
}
return (BeanShellProgramFilterIf) this;
Code: Alles auswählen
Typed variable declaration : Error in method invocation: Method gettField( devplugin.ProgramFieldType ) not found in class'tvdataservice.MutableProgram' : at Line: 7 : in file: inline evaluation of: ``import devplugin.beanshell.BeanShellProgramFilterIf; import devplugin.Program; i . . . '' : p .gettField ( ProgramFieldType .PRODUCTION_YEAR_TYPE )
www_tvbrowser_org/dev/api/tvbrowser_v2.7.6/doc/tvdataservice/MutableProgram.html#getIntField(devplugin.ProgramFieldType)
Bitte um Hilfe. Was mach ich denn falsch :/
LG Drophex