Portable C# Class Library based on Oberons C# Library

DVBLink Remote API clients and tools

Portable C# Class Library based on Oberons C# Library

Postby ChristianRiedl » Thu Aug 20, 2015 5:07 pm

Based on Oberons Remote C# API Library I implemented the library as Portable Class Library based on HttpClient using "async".

The advantage is, that the portable class library can be used for all kind of Windows Apps (Desktop, Windows Store, Phone >= 8.1, Windows 10)

I also added some new functions getting the playlist and the streaming capabilities.

The original sources contain copyright notes from dvblogic.

If somebody wants to use it I can publish the sources here or make it available as Nuget package.

But I would like to get some agreement from Oberon before.
Christian Riedl
ChristianRiedl
 
Posts: 14
Joined: Mon Jul 30, 2012 11:48 pm


Re: Portable C# Class Library based on Oberons C# Library

Postby knekkert » Fri Aug 21, 2015 8:34 am

Please publish this :)

Sent fra min SM-G900F via Tapatalk
knekkert
 
Posts: 46
Joined: Thu Dec 29, 2011 8:21 am

Re: Portable C# Class Library based on Oberons C# Library

Postby Oberon » Fri Aug 21, 2015 9:04 am

No problem from our side. Thank you very much for your efforts and time.
Oberon
 
Posts: 11763
Joined: Thu Sep 06, 2007 5:04 am

Re: Portable C# Class Library based on Oberons C# Library

Postby ChristianRiedl » Fri Aug 21, 2015 10:10 am

Here the Remote API Portable Class Library sources.

Please give me some Information if you find some bugs (ric@rts.co.at).

If there is more interest I will publish it via NuGet.

DVBLink Remote API PCL.zip
C# Remote API PCL
(23.45 KiB) Downloaded 179 times
Christian Riedl
ChristianRiedl
 
Posts: 14
Joined: Mon Jul 30, 2012 11:48 pm

Re: Portable C# Class Library based on Oberons C# Library

Postby phonk » Fri Sep 11, 2015 6:47 am

Hi I tried to open it in Visual Studio Express 2015 but I get a compatiblity error :-(
phonk
 
Posts: 37
Joined: Wed Jun 16, 2010 9:56 am

Re: Portable C# Class Library based on Oberons C# Library

Postby phonk » Fri Sep 11, 2015 8:44 am

OK, I made a new solution with your csfiles and build the dll successfully.

Now I have a strange behaviour:

Code: Select all
               
                _dvbLink = new HttpDataProvider("127.0.0.1", 8100, "", "");

                DVBLinkResponse<Recordings> recordings = await _dvbLink.GetRecordings(new RecordingsRequest());
                foreach (Recording rec in recordings.Result)
                {


                    DateTime dt = FromUnixTime((uint)rec.Program.StartTime);
                    string str = rec.Program.Title + "-" + rec.Program.Subname+ "-"+dt.ToString()+ "-" + rec.Program.IsRecord;
                    Console.WriteLine(str);
                   
                }


Prints out the future schedules of my recordings, not the recordings I have made which I want to get.
phonk
 
Posts: 37
Joined: Wed Jun 16, 2010 9:56 am

Re: Portable C# Class Library based on Oberons C# Library

Postby Oberon » Fri Sep 11, 2015 9:26 am

For recordings you have made you need to use playback objects. The recordings that you use are for timers (for historical reasons).
Oberon
 
Posts: 11763
Joined: Thu Sep 06, 2007 5:04 am

Re: Portable C# Class Library based on Oberons C# Library

Postby phonk » Fri Sep 11, 2015 9:38 am

Ok, thanks you for the reply,

have you an example for ? Is that possible with this library ?
phonk
 
Posts: 37
Joined: Wed Jun 16, 2010 9:56 am

Re: Portable C# Class Library based on Oberons C# Library

Postby finnvid » Sat Nov 14, 2015 11:56 am

I have added the possibility to receive objects (recordings) as well

/tobbe
Attachments
DVBLink API rev to handle objects.zip
(35.43 KiB) Downloaded 148 times
finnvid
 
Posts: 144
Joined: Sun Nov 07, 2010 9:21 am


Return to Development corner

Who is online

Users browsing this forum: No registered users and 2 guests