alturismo 37 Posted December 11, 2019 Share Posted December 11, 2019 Hi, would like to know if there is a direct call for this function or only the way through scheduled task running ? if direct, may a hint which api trigger that would be ... schedules task trigger is working, but ... if only through scheduled task running, is the id always the same ? or generated (my guess ...) ? if generated, may a hint howto fetch it easy ? thanks ahead for a hint Link to comment Share on other sites More sharing options...
chef 3744 Posted December 11, 2019 Share Posted December 11, 2019 To kick off a scheduled task using the c# libraries look at the ITaskManager interface. Otherwise, check out ScheduledTaskService in the swagger. Link to comment Share on other sites More sharing options...
alturismo 37 Posted December 11, 2019 Author Share Posted December 11, 2019 To kick off a scheduled task using the c# libraries look at the ITaskManager interface. Otherwise, check out ScheduledTaskService in the swagger. thanks, the trigger task is clear and working, my question is if there is a direct api call for this function "Refresh Guide" and not the way calling a scheduled task. while talking about the scheduled task, i assume the ID of this task is generated and not static ? Link to comment Share on other sites More sharing options...
chef 3744 Posted December 11, 2019 Share Posted December 11, 2019 (edited) thanks, the trigger task is clear and working, my question is if there is a direct api call for this function "Refresh Guide" and not the way calling a scheduled task. while talking about the scheduled task, i assume the ID of this task is generated and not static ? I'm pretty sure they are static because they are written in plugins. The task id can be found by doing a loop over TaskManager.GetTasks Which is an IEnumerable. Compare the task names and use TaskManager.Execute(task.id) There are quite a few options in the swagger documentation for LiveTvService. So you are using the C# libraries? Edited December 11, 2019 by chef Link to comment Share on other sites More sharing options...
chef 3744 Posted December 11, 2019 Share Posted December 11, 2019 (edited) A quick look through the C# 'interfaces show: ILiveTvManager , which has functions to populate your guide. I suppose the client would make calls to this manager to request the data. I'm not sure if the LiveTvManager gets most recent guide data when it's functions are called. Edited December 11, 2019 by chef Link to comment Share on other sites More sharing options...
alturismo 37 Posted December 11, 2019 Author Share Posted December 11, 2019 @@chef thanks alot for the infos, i ll work my way through, i think im almost done thanks again Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now