CollectionFrame class

Collection frame encoding/decoding for SCA protocol

Constructors

CollectionFrame()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

decodeRequest(Uint8List bytes) → CollectionRequest
Decode collection request
decodeResponse(Uint8List bytes) → CollectionFrameResponse
Decode collection response
encodeError(int status, String errorMessage) → Uint8List
Encode error response
encodeRequest({required String operation, required PeerId ownerPeerId, String? path, String? key, Map<String, String>? headers, Uint8List? body, String? name, Map<String, dynamic>? filter, String? sortField, bool? sortAsc, int? limit, int? offset, String? cursor, bool wantTotal = false, String? visibility, String? accessAction, String? readerPeerId}) → Uint8List
Encode collection request
encodeResponse({required int status, Map<String, dynamic>? headers, Uint8List? body}) → Uint8List
Encode collection response
getOperation(Uint8List bytes) → String
Get operation type from request bytes