Will there be layer.GetSetting as boolean type, in the future ? (1 Viewer)

framug

Super Moderator
  • Team MediaPortal
  • January 31, 2005
    5,904
    1,975
    South of France
    Home Country
    France France
    Started on: 2009-03-24
    last update: 2009-03-24

    Summary:

    Question about TvBusinessLayer operation.

    Description:

    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:
    String Anotherthing = layer.GetSetting("Anotherthing").Value;
    or
    Code:
    TvBusinessLayer layer = new TvBusinessLayer();
    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 who are viewing this thread

    Top Bottom