// This file has been automatically generated by writeMessageClasses.js import { UUID } from '../UUID'; import { MessageFlags } from '../../enums/MessageFlags'; import { MessageBase } from '../MessageBase'; import { Message } from '../../enums/Message'; export class GroupVoteHistoryRequestMessage implements MessageBase { name = 'GroupVoteHistoryRequest'; messageFlags = MessageFlags.FrequencyLow; id = Message.GroupVoteHistoryRequest; AgentData: { AgentID: UUID; SessionID: UUID; }; GroupData: { GroupID: UUID; }; TransactionData: { TransactionID: UUID; }; getSize(): number { return 64; } // @ts-ignore writeToBuffer(buf: Buffer, pos: number): number { const startPos = pos; this.AgentData['AgentID'].writeToBuffer(buf, pos); pos += 16; this.AgentData['SessionID'].writeToBuffer(buf, pos); pos += 16; this.GroupData['GroupID'].writeToBuffer(buf, pos); pos += 16; this.TransactionData['TransactionID'].writeToBuffer(buf, pos); pos += 16; return pos - startPos; } // @ts-ignore readFromBuffer(buf: Buffer, pos: number): number { const startPos = pos; const newObjAgentData: { AgentID: UUID, SessionID: UUID } = { AgentID: UUID.zero(), SessionID: UUID.zero() }; newObjAgentData['AgentID'] = new UUID(buf, pos); pos += 16; newObjAgentData['SessionID'] = new UUID(buf, pos); pos += 16; this.AgentData = newObjAgentData; const newObjGroupData: { GroupID: UUID } = { GroupID: UUID.zero() }; newObjGroupData['GroupID'] = new UUID(buf, pos); pos += 16; this.GroupData = newObjGroupData; const newObjTransactionData: { TransactionID: UUID } = { TransactionID: UUID.zero() }; newObjTransactionData['TransactionID'] = new UUID(buf, pos); pos += 16; this.TransactionData = newObjTransactionData; return pos - startPos; } }