SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Github Development
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Github Development Discussion related to SageTV Open Source Development. Use this forum for development topics about the Open Source versions of SageTV, hosted on Github.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-14-2022, 10:21 PM
hvymetal hvymetal is offline
Sage Advanced User
 
Join Date: Nov 2007
Posts: 162
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
Reply With Quote
  #2  
Old 01-16-2022, 10:58 PM
hvymetal hvymetal is offline
Sage Advanced User
 
Join Date: Nov 2007
Posts: 162
I will answer my own question for others

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

this.guide = (EPGDBPublic2) aGuide;
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Java 8 - No Android / Java 10 - No Schedules Direct - Stuck? Flips SageTV for unRAID/Docker 7 12-11-2021 12:56 PM
SageTV 6 Client problems after Java 7 install, Java 6 uninstall alisonnic SageTV Software 5 01-24-2013 02:51 PM
Java SE7 Favorite limit day problem (vs Java SE6) voidpt SageTV Software 0 10-21-2012 12:29 PM
Tables, Java - Java Not being Called for each TableComponent Cell stuckless SageTV Studio 3 04-02-2008 03:03 PM
Beta V1.2.2 Java java.lang Null Pointer Exception hamptonhills SageTV Beta Test Software 1 03-27-2003 12:11 PM


All times are GMT -6. The time now is 11:14 AM.


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