Methods are too specific.
matdombrock opened this issue · 2 comments
matdombrock commented
Having state.full
, state.color
, state.brightness
ect. is just too specific and not really helpful. You can just pass a single value to state.full
.
This are kind of nice, but probably should not be part of the main wrapper.
matdombrock commented
I should split the methods into two groups. "Easy" and "Full". Full methods will take JSON input and Easy methods will rely on the Full methods but take string or number input.
I should maybe also create "Utility" methods like "token".
matdombrock commented
I could also maybe do something like:
exports.state = async function (type, data, selector="all"){
switch(type){
[...]
}
[...]
}
Where type
could be "full", "color", "brightness" ect.