Class: LibSL::GroupVoteHistoryItemReplyPacket

Inherits:
Packet
  • Object
show all
Defined in:
lib/_packets.rb

Instance Attribute Summary

Attributes inherited from Packet

#acks, #acks_flag, #reliable_flag, #resent_count, #resent_flag, #sequence_number, #zero_coded_flag

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Packet

decode, #decode_msg, #encode, #encode_msg, #initialize, #method_missing, zero_decode

Constructor Details

This class inherits a constructor from LibSL::Packet

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class LibSL::Packet

Class Method Details

.packet_idObject



8532
8533
8534
# File 'lib/_packets.rb', line 8532

def self.packet_id()
	4294902122
end

Instance Method Details

#build_structureObject



8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
# File 'lib/_packets.rb', line 8536

def build_structure()
	@blocks = [
		[:AgentData, Block.new([
			[:AgentID, :LLUUID],
			[:GroupID, :LLUUID]
		])],
		[:TransactionData, Block.new([
			[:TransactionID, :LLUUID],
			[:TotalNumItems, :LLU32]
		])],
		[:HistoryItemData, Block.new([
			[:VoteID, :LLUUID],
			[:TerseDateID, :LLVariable1],
			[:StartDateTime, :LLVariable1],
			[:EndDateTime, :LLVariable1],
			[:VoteInitiator, :LLUUID],
			[:VoteType, :LLVariable1],
			[:VoteResult, :LLVariable1],
			[:Majority, :LLF32],
			[:Quorum, :LLS32],
			[:ProposalText, :LLVariable2]
		])],
		[:VoteItem, VariableBlockCollection.new([
			[:CandidateID, :LLUUID],
			[:VoteCast, :LLVariable1],
			[:NumVotes, :LLS32]
		])]
	]
end