09-02-2011, 05:31 AM
OK, three questions so far.
Is it possible to find out what type of user I have logged in as? I see that some things (e.g. editing an event) are possible only as a power user, and it would be nice to disable the functionality if editing is not available. I seem to remember that there was a way to know this in RIVA, but I don't see anything in the XMLGW spec.
There's one command to get the device list, and another to get the status of a particular device. When I imagine the user interface, it seems like the list of devices ought to be accompanied by the status of each, but this would require calling the status call for each device. I wanted to make sure that this is not an expensive call to make, so I'm not going to be bogging down the system by calling it on each device in turn.
I see that macros have parameters. Is there any way to know how many parameters there are for a macro, or what type they are supposed to be? Or when prompting to run a macro, should I just display some fixed number of free text boxes, and assume that the user knows what to do? If so, how many parameters is a good upper limit to display?
Is it possible to find out what type of user I have logged in as? I see that some things (e.g. editing an event) are possible only as a power user, and it would be nice to disable the functionality if editing is not available. I seem to remember that there was a way to know this in RIVA, but I don't see anything in the XMLGW spec.
There's one command to get the device list, and another to get the status of a particular device. When I imagine the user interface, it seems like the list of devices ought to be accompanied by the status of each, but this would require calling the status call for each device. I wanted to make sure that this is not an expensive call to make, so I'm not going to be bogging down the system by calling it on each device in turn.
I see that macros have parameters. Is there any way to know how many parameters there are for a macro, or what type they are supposed to be? Or when prompting to run a macro, should I just display some fixed number of free text boxes, and assume that the user knows what to do? If so, how many parameters is a good upper limit to display?