Will there be layer.GetSetting as boolean type, in the future ?

Discussion in 'Improvement Suggestions' started by framug, March 24, 2009.

  1. framug

    framug Portal Pro

    January 31, 2005
    Likes Received:
    software engineer
    South of France
    +228 / 2
    Home Country:
    France France
    Started on: 2009-03-24
    last update: 2009-03-24


    Question about TvBusinessLayer operation.


    For TV-Server plugin devs, may be could it be interesting to have differents type than String ?
    Maybe a layer.GetSettingAsBool ability, for example ?

    For the moment, two ways to get a parameter stored in TV-Server :
    Code (Text):
    1. String Anotherthing = layer.GetSetting("Anotherthing").Value;
    Code (Text):
    1. TvBusinessLayer layer = new TvBusinessLayer();
    2. String Something = layer.GetSetting("Something", "Nothing").Value;
    Then, if we have boolean type like checked boxes, ...., we have to convert all variables as string.
    What do you think about ?
    Is it possible to add it in TvBusinessLayer, please ?

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.


  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!