UpdateReadHistoryOutbox.deserialize constructor
UpdateReadHistoryOutbox.deserialize(
- BinaryReader reader
Deserialize.
Implementation
factory UpdateReadHistoryOutbox.deserialize(BinaryReader reader) {
// Read [UpdateReadHistoryOutbox] fields.
final peer = reader.readObject() as PeerBase;
final maxId = reader.readInt32();
final pts = reader.readInt32();
final ptsCount = reader.readInt32();
// Construct [UpdateReadHistoryOutbox] object.
final returnValue = UpdateReadHistoryOutbox(
peer: peer,
maxId: maxId,
pts: pts,
ptsCount: ptsCount,
);
// Now return the deserialized [UpdateReadHistoryOutbox].
return returnValue;
}