UpdateMessagePollVote.deserialize constructor

UpdateMessagePollVote.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory UpdateMessagePollVote.deserialize(BinaryReader reader) {
  // Read [UpdateMessagePollVote] fields.
  final pollId = reader.readInt64();
  final peer = reader.readObject() as PeerBase;
  final options = reader.readVectorBytes();
  final qts = reader.readInt32();

  // Construct [UpdateMessagePollVote] object.
  final returnValue = UpdateMessagePollVote(
    pollId: pollId,
    peer: peer,
    options: options,
    qts: qts,
  );

  // Now return the deserialized [UpdateMessagePollVote].
  return returnValue;
}