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

framug

Super Moderator
  • Team MediaPortal
  • January 31, 2005
    4,504
    523
    South of France
    France France
    Country flag
    • Thread starter
    • Moderator
    • #1
    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 (Users: 0, Guests: 1)

    Top Bottom