CoapRequest.fromParsed constructor

CoapRequest.fromParsed(
  1. Uri uri,
  2. RequestMethod method, {
  3. required CoapMessageType type,
  4. required int id,
  5. required Uint8Buffer token,
  6. required List<Option<Object?>> options,
  7. required Uint8Buffer? payload,
  8. required bool hasUnknownCriticalOption,
  9. required bool hasFormatError,
})

Implementation

CoapRequest.fromParsed(
  this.uri,
  this.method, {
  required final CoapMessageType type,
  required final int id,
  required final Uint8Buffer token,
  required final List<Option<Object?>> options,
  required final Uint8Buffer? payload,
  required final bool hasUnknownCriticalOption,
  required final bool hasFormatError,
}) : super.fromParsed(
        method.coapCode,
        type,
        id: id,
        token: token,
        options: options,
        hasUnknownCriticalOption: hasUnknownCriticalOption,
        hasFormatError: hasFormatError,
        payload: payload,
      );