TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
WorldPackets::Ticket::SupportTicketSubmitComplaint Class Referencefinal

#include <TicketPackets.h>

Classes

struct  SupportTicketCalendarEventInfo
 
struct  SupportTicketChatLine
 
struct  SupportTicketChatLog
 
struct  SupportTicketGuildInfo
 
struct  SupportTicketLFGListApplicant
 
struct  SupportTicketLFGListSearchResult
 
struct  SupportTicketMailInfo
 
struct  SupportTicketPetInfo
 

Public Member Functions

 SupportTicketSubmitComplaint (WorldPacket &&packet)
 
void Read () override
 
- Public Member Functions inherited from WorldPackets::ClientPacket
 ClientPacket (WorldPacket &&packet)
 
 ClientPacket (OpcodeClient expectedOpcode, WorldPacket &&packet)
 
WorldPacket constWrite () overridefinal
 
OpcodeClient GetOpcode () const
 
- Public Member Functions inherited from WorldPackets::Packet
 Packet (WorldPacket &&worldPacket)
 
virtual ~Packet ()=default
 
 Packet (Packet const &right)=delete
 
Packetoperator= (Packet const &right)=delete
 
WorldPacket constGetRawPacket () const
 
size_t GetSize () const
 
ConnectionType GetConnection () const
 

Public Attributes

SupportTicketHeader Header
 
SupportTicketChatLog ChatLog
 
ObjectGuid TargetCharacterGUID
 
uint8 ComplaintType = 0
 
std::string Note
 
Optional< SupportTicketMailInfoMailInfo
 
Optional
< SupportTicketCalendarEventInfo
CalenderInfo
 
Optional< SupportTicketPetInfoPetInfo
 
Optional< SupportTicketGuildInfoGuildInfo
 
Optional
< SupportTicketLFGListSearchResult
LFGListSearchResult
 
Optional
< SupportTicketLFGListApplicant
LFGListApplicant
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::Ticket::SupportTicketSubmitComplaint::SupportTicketSubmitComplaint ( WorldPacket &&  packet)
inline
178 : ClientPacket(CMSG_SUPPORT_TICKET_SUBMIT_COMPLAINT, std::move(packet)) { }
ClientPacket(WorldPacket &&packet)
Definition: Packet.h:62
Definition: Opcodes.h:661

Member Function Documentation

void WorldPackets::Ticket::SupportTicketSubmitComplaint::Read ( )
overridevirtual

Implements WorldPackets::Packet.

193 {
194  _worldPacket >> Header;
198 
199  uint32 noteLength = _worldPacket.ReadBits(10);
200  bool hasMailInfo = _worldPacket.ReadBit();
201  bool hasCalendarInfo = _worldPacket.ReadBit();
202  bool hasPetInfo = _worldPacket.ReadBit();
203  bool hasGuildInfo = _worldPacket.ReadBit();
204  bool hasLFGListSearchResult = _worldPacket.ReadBit();
205  bool hasLFGListApplicant = _worldPacket.ReadBit();
206 
208 
209  Note = _worldPacket.ReadString(noteLength);
210 
211  if (hasMailInfo)
213 
214  if (hasCalendarInfo)
216 
217  if (hasPetInfo)
219 
220  if (hasGuildInfo)
222 
223  if (hasLFGListSearchResult)
225 
226  if (hasLFGListApplicant)
228 }
SupportTicketHeader Header
Definition: TicketPackets.h:182
std::string Note
Definition: TicketPackets.h:186
ObjectGuid TargetCharacterGUID
Definition: TicketPackets.h:184
uint32 ReadBits(int32 bits)
Definition: ByteBuffer.h:204
void ResetBitPos()
Definition: ByteBuffer.h:161
WorldPacket _worldPacket
Definition: Packet.h:43
Optional< SupportTicketLFGListApplicant > LFGListApplicant
Definition: TicketPackets.h:192
Optional< SupportTicketGuildInfo > GuildInfo
Definition: TicketPackets.h:190
uint8 ComplaintType
Definition: TicketPackets.h:185
Optional< SupportTicketLFGListSearchResult > LFGListSearchResult
Definition: TicketPackets.h:191
std::string ReadString(uint32 length)
Definition: ByteBuffer.h:524
Optional< SupportTicketPetInfo > PetInfo
Definition: TicketPackets.h:189
uint32_t uint32
Definition: Define.h:150
SupportTicketChatLog ChatLog
Definition: TicketPackets.h:183
Optional< SupportTicketMailInfo > MailInfo
Definition: TicketPackets.h:187
Optional< SupportTicketCalendarEventInfo > CalenderInfo
Definition: TicketPackets.h:188
bool ReadBit()
Definition: ByteBuffer.h:186

+ Here is the call graph for this function:

Member Data Documentation

Optional<SupportTicketCalendarEventInfo> WorldPackets::Ticket::SupportTicketSubmitComplaint::CalenderInfo
SupportTicketChatLog WorldPackets::Ticket::SupportTicketSubmitComplaint::ChatLog
uint8 WorldPackets::Ticket::SupportTicketSubmitComplaint::ComplaintType = 0
Optional<SupportTicketGuildInfo> WorldPackets::Ticket::SupportTicketSubmitComplaint::GuildInfo
SupportTicketHeader WorldPackets::Ticket::SupportTicketSubmitComplaint::Header
Optional<SupportTicketLFGListApplicant> WorldPackets::Ticket::SupportTicketSubmitComplaint::LFGListApplicant
Optional<SupportTicketLFGListSearchResult> WorldPackets::Ticket::SupportTicketSubmitComplaint::LFGListSearchResult
Optional<SupportTicketMailInfo> WorldPackets::Ticket::SupportTicketSubmitComplaint::MailInfo
std::string WorldPackets::Ticket::SupportTicketSubmitComplaint::Note
Optional<SupportTicketPetInfo> WorldPackets::Ticket::SupportTicketSubmitComplaint::PetInfo
ObjectGuid WorldPackets::Ticket::SupportTicketSubmitComplaint::TargetCharacterGUID

The documentation for this class was generated from the following files: