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

#include <CalendarPackets.h>

Public Member Functions

 CalendarEventInviteNotesAlert ()
 
 CalendarEventInviteNotesAlert (uint64 eventID, std::string const &notes)
 
WorldPacket constWrite () override
 
- Public Member Functions inherited from WorldPackets::ServerPacket
 ServerPacket (OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
 
void Read () overridefinal
 
void Clear ()
 
WorldPacket && Move ()
 
OpcodeServer 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

uint64 EventID = 0
 
std::string Notes
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::Calendar::CalendarEventInviteNotesAlert::CalendarEventInviteNotesAlert ( )
inline
ServerPacket(OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
Definition: Packet.h:49
WorldPackets::Calendar::CalendarEventInviteNotesAlert::CalendarEventInviteNotesAlert ( uint64  eventID,
std::string const notes 
)
inline
551 : ServerPacket(SMSG_CALENDAR_EVENT_INVITE_NOTES_ALERT, 8 + notes.size()), EventID(eventID), Notes(notes) { }
ServerPacket(OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
Definition: Packet.h:49
std::string Notes
Definition: CalendarPackets.h:556
uint64 EventID
Definition: CalendarPackets.h:555

Member Function Documentation

WorldPacket const * WorldPackets::Calendar::CalendarEventInviteNotesAlert::Write ( )
overridevirtual

Implements WorldPackets::Packet.

467 {
469 
470  _worldPacket.WriteBits(Notes.size(), 8);
473 
474  return &_worldPacket;
475 }
void FlushBits()
Definition: ByteBuffer.h:150
uint64_t uint64
Definition: g3dmath.h:170
WorldPacket _worldPacket
Definition: Packet.h:43
void WriteString(std::string const &str)
Definition: ByteBuffer.h:540
std::string Notes
Definition: CalendarPackets.h:556
uint64 EventID
Definition: CalendarPackets.h:555
void WriteBits(T value, int32 bits)
Definition: ByteBuffer.h:198

Member Data Documentation

uint64 WorldPackets::Calendar::CalendarEventInviteNotesAlert::EventID = 0
std::string WorldPackets::Calendar::CalendarEventInviteNotesAlert::Notes

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