Page 1 of 1

Portable C# Class Library based on Oberons C# Library

PostPosted: Thu Aug 20, 2015 5:07 pm
by ChristianRiedl
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.

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

PostPosted: Fri Aug 21, 2015 8:34 am
by knekkert
Please publish this :)

Sent fra min SM-G900F via Tapatalk

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

PostPosted: Fri Aug 21, 2015 9:04 am
by Oberon
No problem from our side. Thank you very much for your efforts and time.

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

PostPosted: Fri Aug 21, 2015 10:10 am
by ChristianRiedl
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 322 times

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

PostPosted: Fri Sep 11, 2015 6:47 am
by phonk
Hi I tried to open it in Visual Studio Express 2015 but I get a compatiblity error :-(

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

PostPosted: Fri Sep 11, 2015 8:44 am
by phonk
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.

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

PostPosted: Fri Sep 11, 2015 9:26 am
by Oberon
For recordings you have made you need to use playback objects. The recordings that you use are for timers (for historical reasons).

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

PostPosted: Fri Sep 11, 2015 9:38 am
by phonk
Ok, thanks you for the reply,

have you an example for ? Is that possible with this library ?

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

PostPosted: Sat Nov 14, 2015 11:56 am
by finnvid
I have added the possibility to receive objects (recordings) as well

/tobbe