3 Replies Latest reply on Jan 17, 2018 10:44 PM by jasong RSS
    jasong Creator

    Best Practice for using an enumerated type.

    I'd like to make a Cellular Modem ThingShape that has a property that determines whether the Thing is CDMA modem, or a GPRS modem,
    1xRtt , EDGE, or LTE, etc.
    Coming from my world in C#, I use enumerations all of the time, so I'd make a ModemType enumeration, with all possibile values.  How do I define this in this system?  Do I simply use an integer property and enforce the value in software?


    I was thinking Tags, but that seems like more of a hack than a real solution, because you would still have to enforce the Tag's existence or validity in software somewhere.


    Thoughts and ideas?