shamblett / coap

A Coap package for dart
Other
16 stars 13 forks source link

refactor!: rework `CoapCode` and `CoapMessageType` as enhanced enums #114

Closed JKRhb closed 2 years ago

JKRhb commented 2 years ago

This PR refactors the CoapCode and CoapMessageType classes as enhanced enums (also see #80), making the code more concise and readable. The changes also make it easier to add more CoapCodes in the future. The PR itself adds a few missing CoapCodes from the IANA registry, including the new method codes FETCH, PATCH, and iPATCH.

CC @JosefWN

JKRhb commented 2 years ago

I incorporated the suggestions and squashed the commits :)

JosefWN commented 2 years ago

LGTM!