FeedFrame class

Feed frame encoding/decoding for SFA protocol

Constructors

FeedFrame()

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) → FeedRequest
Decode feed request
decodeResponse(Uint8List bytes) → FeedFrameResponse
Decode feed response
encodeBatchGetRequest({required List<Map<String, dynamic>> batchQueries}) → Uint8List
Encode a BATCH_GET feed request
encodeError(int status, String errorMessage) → Uint8List
Encode error response
encodeRequest({required String operation, required PeerId ownerPeerId, String? path, Map<String, String>? headers, Uint8List? body, String? title, String? description, String? entryType, int? sequenceNumber, int? fromSequence, int? toSequence, int? limit, bool collaborative = false}) → Uint8List
Encode feed request
encodeResponse({required int status, Map<String, dynamic>? headers, Uint8List? body}) → Uint8List
Encode feed response
getOperation(Uint8List bytes) → String
Get operation type from request bytes