What should be done?
Someone should add some telemetry that lets the user know what button is pressed. I have a couple of ideas as to how this can be done, but feel free to do your solution.
Constructor Based Telemetry (In the BTN class)
- Create a new constructor with a 'name' : String parameter.
- In this new constructor, do the same as the default constructor.
- Create a new variable named string (might look something like this)
public BTN(String name, foo) {
// some stuff happens here
// introduce name
this.name = name;
}
- Create a method in the BTN class that can be called which will update the telemetry with the name of the button called
- Easiest method would be use to the String.Format() method