If you look at ConnectionState, the enums are all lowercase allowing something like:
switch (state) {
case connected:
case failed:
}
and the following:
connection.on(ConnectionState.connected, listener) { ... }
Same applies for ChannelState.
However, PresenceMessage.Action uses upper case making the API interface for devs consistent. For example, a user will now need to do the following (once #21 is resolved):
presence.subscribe(PresenceMessage.Action.ENTER, listener) { ... }
and
switch (action) {
case ENTER:
case LEAVE:
}
I believe we should aim for consistency in these public enums and should probably just go lowercase.
WDYT @paddybyers?
If you look at ConnectionState, the enums are all lowercase allowing something like:
and the following:
Same applies for ChannelState.
However,
PresenceMessage.Actionuses upper case making the API interface for devs consistent. For example, a user will now need to do the following (once #21 is resolved):and
I believe we should aim for consistency in these public enums and should probably just go lowercase.
WDYT @paddybyers?