CoapResponse.fromParsed constructor
CoapResponse.fromParsed(
- ResponseCode responseCode, {
- required CoapMessageType type,
- required int id,
- required Uint8Buffer token,
- required List<
Option< options,Object?> > - required Uint8Buffer? payload,
- required bool hasUnknownCriticalOption,
- required bool hasFormatError,
- Uri? location,
Implementation
CoapResponse.fromParsed(
this.responseCode, {
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,
final Uri? location,
}) : location = location ?? Uri(path: '/'),
super.fromParsed(
responseCode.coapCode,
type,
id: id,
token: token,
options: options,
hasUnknownCriticalOption: hasUnknownCriticalOption,
hasFormatError: hasFormatError,
payload: payload,
);