SageTV Community

SageTV Community (http://forums.sagetv.com/forums/index.php)
-   SageTV Github Development (http://forums.sagetv.com/forums/forumdisplay.php?f=53)
-   -   How to use EPGDBPublic2.java (http://forums.sagetv.com/forums/showthread.php?t=66904)

hvymetal 01-14-2022 10:21 PM

How to use EPGDBPublic2.java
 
I have a SageTV Java programming question I can not seem to find a an solution. I am trying to update the XMLTV plugin to get it more up to the current standard. The original code is using EPGDBPublic.java which gets the guide from class that implements sage.EPGImportPlugin by defining the following function.

updateGuide(String aProviderId, EPGDBPublic aGuide)
https://github.com/google/sagetv/blo...lugin.java#L44


How do use guide that is type EPGDBPublic with EPGDBPublic2 which is and interface that extends EPGDBPublic?
https://github.com/google/sagetv/blo...blic2.java#L22

hvymetal 01-16-2022 10:58 PM

I will answer my own question for others

Just cast it. Found studying SageTV base code for good amount of time :bang:

this.guide = (EPGDBPublic2) aGuide;


All times are GMT -6. The time now is 02:08 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2022, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.