AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
GmTicket Class Reference

#include "TicketMgr.h"

Public Member Functions

 GmTicket ()
 
 GmTicket (Player *player)
 
 ~GmTicket ()
 
bool IsClosed () const
 
bool IsCompleted () const
 
bool IsFromPlayer (ObjectGuid guid) const
 
bool IsAssigned () const
 
bool IsAssignedTo (ObjectGuid guid) const
 
bool IsAssignedNotTo (ObjectGuid guid) const
 
uint32 GetId () const
 
PlayerGetPlayer () const
 
std::string const & GetPlayerName () const
 
std::string const & GetMessage () const
 
PlayerGetAssignedPlayer () const
 
ObjectGuid GetAssignedToGUID () const
 
std::string GetAssignedToName () const
 
uint64 GetLastModifiedTime () const
 
GMTicketEscalationStatus GetEscalatedStatus () const
 
void SetEscalatedStatus (GMTicketEscalationStatus escalatedStatus)
 
void SetAssignedTo (ObjectGuid guid, bool isAdmin)
 
void SetClosedBy (ObjectGuid value)
 
void SetResolvedBy (ObjectGuid value)
 
void SetCompleted ()
 
void SetMessage (std::string const &message)
 
void SetComment (std::string const &comment)
 
void SetViewed ()
 
void SetUnassigned ()
 
void SetPosition (uint32 mapId, float x, float y, float z)
 
void SetGmAction (uint32 needResponse, bool needMoreHelp)
 
void AppendResponse (std::string const &response)
 
std::string GetResponse ()
 
void DeleteResponse ()
 
bool LoadFromDB (Field *fields)
 
void SaveToDB (CharacterDatabaseTransaction trans) const
 
void DeleteFromDB ()
 
void WritePacket (WorldPacket &data) const
 
void SendResponse (WorldSession *session) const
 
void TeleportTo (Player *player) const
 
std::string FormatMessageString (ChatHandler &handler, bool detailed=false) const
 
std::string FormatMessageString (ChatHandler &handler, const char *szClosedName, const char *szAssignedToName, const char *szUnassignedName, const char *szDeletedName) const
 
void SetChatLog (std::list< uint32 > time, std::string const &log)
 
std::string const & GetChatLog () const
 

Private Attributes

uint32 _id
 
ObjectGuid _playerGuid
 
TicketType _type
 
std::string _playerName
 
float _posX
 
float _posY
 
float _posZ
 
uint16 _mapId
 
std::string _message
 
uint64 _createTime
 
uint64 _lastModifiedTime
 
ObjectGuid _closedBy
 
ObjectGuid _resolvedBy
 
ObjectGuid _assignedTo
 
std::string _comment
 
bool _completed
 
GMTicketEscalationStatus _escalatedStatus
 
bool _viewed
 
bool _needResponse
 
bool _needMoreHelp
 
std::string _response
 
std::string _chatLog
 

Detailed Description

Constructor & Destructor Documentation

◆ GmTicket() [1/2]

GmTicket::GmTicket ( )
@ TICKET_TYPE_OPEN
Definition TicketMgr.h:82
@ TICKET_UNASSIGNED
Definition TicketMgr.h:57
bool _viewed
Definition TicketMgr.h:176
TicketType _type
Definition TicketMgr.h:161
float _posZ
Definition TicketMgr.h:165
bool _completed
Definition TicketMgr.h:174
GMTicketEscalationStatus _escalatedStatus
Definition TicketMgr.h:175
bool _needResponse
Definition TicketMgr.h:177
bool _needMoreHelp
Definition TicketMgr.h:178
float _posY
Definition TicketMgr.h:164
uint16 _mapId
Definition TicketMgr.h:166
uint32 _id
Definition TicketMgr.h:159
float _posX
Definition TicketMgr.h:163
uint64 _createTime
Definition TicketMgr.h:168
uint64 _lastModifiedTime
Definition TicketMgr.h:169

◆ GmTicket() [2/2]

GmTicket::GmTicket ( Player player)
42{
43 _id = sTicketMgr->GenerateTicketId();
44 _playerName = player->GetName();
45 _playerGuid = player->GetGUID();
46}
#define sTicketMgr
Definition TicketMgr.h:260
ObjectGuid _playerGuid
Definition TicketMgr.h:160
std::string _playerName
Definition TicketMgr.h:162
static ObjectGuid GetGUID(Object const *o)
Definition Object.h:112
std::string const & GetName() const
Definition Object.h:463
Seconds GetGameTime()
Definition GameTime.cpp:38

References _id, _playerGuid, _playerName, Object::GetGUID(), WorldObject::GetName(), and sTicketMgr.

◆ ~GmTicket()

GmTicket::~GmTicket ( )
48{ }

Member Function Documentation

◆ AppendResponse()

void GmTicket::AppendResponse ( std::string const &  response)
inline
140{ _response += response; }
std::string _response
Definition TicketMgr.h:179

References _response.

Referenced by ticket_commandscript::HandleGMTicketCompleteCommand(), and ticket_commandscript::TicketResponseAppend().

◆ DeleteFromDB()

void GmTicket::DeleteFromDB ( )
110{
112 stmt->SetData(0, _id);
113 CharacterDatabase.Execute(stmt);
114}
@ CHAR_DEL_GM_TICKET
Definition CharacterDatabase.h:264
DatabaseWorkerPool< CharacterDatabaseConnection > CharacterDatabase
Accessor to the character database.
Definition DatabaseEnv.cpp:21
Acore::Types::is_default< T > SetData(const uint8 index, T value)
Definition PreparedStatement.h:77
Definition PreparedStatement.h:157

References _id, CHAR_DEL_GM_TICKET, CharacterDatabase, and PreparedStatementBase::SetData().

◆ DeleteResponse()

void GmTicket::DeleteResponse ( )
inline

◆ FormatMessageString() [1/2]

std::string GmTicket::FormatMessageString ( ChatHandler handler,
bool  detailed = false 
) const
163{
164 time_t curTime = GameTime::GetGameTime().count();
165
166 std::stringstream ss;
169 ss << handler.PGetParseString(LANG_COMMAND_TICKETLISTAGECREATE, (secsToTimeString(curTime - _createTime, true)).c_str());
170 ss << handler.PGetParseString(LANG_COMMAND_TICKETLISTAGE, (secsToTimeString(curTime - _lastModifiedTime, true)).c_str());
171
172 std::string name;
173 if (sCharacterCache->GetCharacterNameByGuid(_assignedTo, name))
174 {
175 ss << handler.PGetParseString(LANG_COMMAND_TICKETLISTASSIGNEDTO, name.c_str());
176 }
177
178 if (detailed)
179 {
181 if (!_comment.empty())
183 if (!_response.empty())
185 }
186 return ss.str();
187}
#define sCharacterCache
Definition CharacterCache.h:83
@ LANG_COMMAND_TICKETLISTGUID
Definition Language.h:1029
@ LANG_COMMAND_TICKETLISTCOMMENT
Definition Language.h:1035
@ LANG_COMMAND_TICKETLISTAGE
Definition Language.h:1031
@ LANG_COMMAND_TICKETLISTRESPONSE
Definition Language.h:1041
@ LANG_COMMAND_TICKETLISTASSIGNEDTO
Definition Language.h:1032
@ LANG_COMMAND_TICKETLISTAGECREATE
Definition Language.h:1037
@ LANG_COMMAND_TICKETLISTMESSAGE
Definition Language.h:1034
@ LANG_COMMAND_TICKETLISTNAME
Definition Language.h:1030
std::string secsToTimeString(uint64 timeInSecs, bool shortText)
Definition Util.cpp:73
std::string PGetParseString(uint32 entry, Args &&... args) const
Definition Chat.h:154
std::string _message
Definition TicketMgr.h:167
ObjectGuid _assignedTo
Definition TicketMgr.h:172
std::string _comment
Definition TicketMgr.h:173

References _assignedTo, _comment, _createTime, _id, _lastModifiedTime, _message, _playerName, _response, GameTime::GetGameTime(), LANG_COMMAND_TICKETLISTAGE, LANG_COMMAND_TICKETLISTAGECREATE, LANG_COMMAND_TICKETLISTASSIGNEDTO, LANG_COMMAND_TICKETLISTCOMMENT, LANG_COMMAND_TICKETLISTGUID, LANG_COMMAND_TICKETLISTMESSAGE, LANG_COMMAND_TICKETLISTNAME, LANG_COMMAND_TICKETLISTRESPONSE, ChatHandler::PGetParseString(), sCharacterCache, and secsToTimeString().

Referenced by ticket_commandscript::HandleGMTicketAssignToCommand(), ticket_commandscript::HandleGMTicketCloseByIdCommand(), ticket_commandscript::HandleGMTicketCommentCommand(), ticket_commandscript::HandleGMTicketCompleteCommand(), ticket_commandscript::HandleGMTicketDeleteByIdCommand(), ticket_commandscript::HandleGMTicketGetByIdCommand(), ticket_commandscript::HandleGMTicketGetByNameCommand(), ticket_commandscript::HandleGMTicketResponseDeleteCommand(), ticket_commandscript::HandleGMTicketResponseShowCommand(), ticket_commandscript::HandleGMTicketUnAssignCommand(), and ticket_commandscript::TicketResponseAppend().

◆ FormatMessageString() [2/2]

std::string GmTicket::FormatMessageString ( ChatHandler handler,
const char *  szClosedName,
const char *  szAssignedToName,
const char *  szUnassignedName,
const char *  szDeletedName 
) const
190{
191 std::stringstream ss;
194 if (szClosedName)
195 ss << handler.PGetParseString(LANG_COMMAND_TICKETCLOSED, szClosedName);
196 if (szAssignedToName)
197 ss << handler.PGetParseString(LANG_COMMAND_TICKETLISTASSIGNEDTO, szAssignedToName);
198 if (szUnassignedName)
199 ss << handler.PGetParseString(LANG_COMMAND_TICKETLISTUNASSIGNED, szUnassignedName);
200 if (szDeletedName)
201 ss << handler.PGetParseString(LANG_COMMAND_TICKETDELETED, szDeletedName);
202 return ss.str();
203}
@ LANG_COMMAND_TICKETCLOSED
Definition Language.h:1015
@ LANG_COMMAND_TICKETDELETED
Definition Language.h:1016
@ LANG_COMMAND_TICKETLISTUNASSIGNED
Definition Language.h:1033

References _id, _playerName, LANG_COMMAND_TICKETCLOSED, LANG_COMMAND_TICKETDELETED, LANG_COMMAND_TICKETLISTASSIGNEDTO, LANG_COMMAND_TICKETLISTGUID, LANG_COMMAND_TICKETLISTNAME, LANG_COMMAND_TICKETLISTUNASSIGNED, and ChatHandler::PGetParseString().

◆ GetAssignedPlayer()

Player * GmTicket::GetAssignedPlayer ( ) const
inline
Player * FindConnectedPlayer(ObjectGuid const guid)
Definition ObjectAccessor.cpp:257

References _assignedTo, and ObjectAccessor::FindConnectedPlayer().

Referenced by ticket_commandscript::HandleGMTicketUnAssignCommand().

◆ GetAssignedToGUID()

ObjectGuid GmTicket::GetAssignedToGUID ( ) const
inline

◆ GetAssignedToName()

std::string GmTicket::GetAssignedToName ( ) const
inline
108 {
109 std::string name;
110 // save queries if ticket is not assigned
111 if (_assignedTo)
112 {
113 sCharacterCache->GetCharacterNameByGuid(_assignedTo, name);
114 }
115
116 return name;
117 }

References _assignedTo, and sCharacterCache.

Referenced by ticket_commandscript::HandleGMTicketCommentCommand(), and ticket_commandscript::HandleGMTicketUnAssignCommand().

◆ GetChatLog()

std::string const & GmTicket::GetChatLog ( ) const
inline
156{ return _chatLog; }
std::string _chatLog
Definition TicketMgr.h:180

References _chatLog.

◆ GetEscalatedStatus()

GMTicketEscalationStatus GmTicket::GetEscalatedStatus ( ) const
inline

◆ GetId()

◆ GetLastModifiedTime()

uint64 GmTicket::GetLastModifiedTime ( ) const
inline
118{ return _lastModifiedTime; }

References _lastModifiedTime.

◆ GetMessage()

std::string const & GmTicket::GetMessage ( ) const
inline
104{ return _message; }

References _message.

◆ GetPlayer()

◆ GetPlayerName()

std::string const & GmTicket::GetPlayerName ( ) const
inline
103{ return _playerName; }

References _playerName.

◆ GetResponse()

std::string GmTicket::GetResponse ( )
inline

◆ IsAssigned()

bool GmTicket::IsAssigned ( ) const
inline

◆ IsAssignedNotTo()

◆ IsAssignedTo()

bool GmTicket::IsAssignedTo ( ObjectGuid  guid) const
inline

◆ IsClosed()

◆ IsCompleted()

◆ IsFromPlayer()

bool GmTicket::IsFromPlayer ( ObjectGuid  guid) const
inline
96{ return guid == _playerGuid; }

References _playerGuid.

◆ LoadFromDB()

bool GmTicket::LoadFromDB ( Field fields)
51{
52 // 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
53 // id, type, playerGuid, name, message, createTime, mapId, posX, posY, posZ, lastModifiedTime, closedBy, assignedTo, comment, response, completed, escalated, viewed, haveTicket, resolvedBy
54 uint8 index = 0;
55 _id = fields[ index].Get<uint32>();
56 _type = TicketType(fields[++index].Get<uint8>());
57 _playerGuid = ObjectGuid::Create<HighGuid::Player>(fields[++index].Get<uint32>());
58 _playerName = fields[++index].Get<std::string>();
59 _message = fields[++index].Get<std::string>();
60 _createTime = fields[++index].Get<uint32>();
61 _mapId = fields[++index].Get<uint16>();
62 _posX = fields[++index].Get<float>();
63 _posY = fields[++index].Get<float>();
64 _posZ = fields[++index].Get<float>();
65 _lastModifiedTime = fields[++index].Get<uint32>();
66 _closedBy = ObjectGuid::Create<HighGuid::Player>(fields[++index].Get<int32>());
67 _assignedTo = ObjectGuid::Create<HighGuid::Player>(fields[++index].Get<uint32>());
68 _comment = fields[++index].Get<std::string>();
69 _response = fields[++index].Get<std::string>();
70 _completed = fields[++index].Get<bool>();
71 _escalatedStatus = GMTicketEscalationStatus(fields[++index].Get<uint8>());
72 _viewed = fields[++index].Get<bool>();
73 _needMoreHelp = fields[++index].Get<bool>();
74 _resolvedBy = ObjectGuid::Create<HighGuid::Player>(fields[++index].Get<int32>());
75
76 return true;
77}
std::uint8_t uint8
Definition Define.h:109
std::uint32_t uint32
Definition Define.h:107
std::uint16_t uint16
Definition Define.h:108
TicketType
Definition TicketMgr.h:81
GMTicketEscalationStatus
Definition TicketMgr.h:56
std::enable_if_t< std::is_arithmetic_v< T >, T > Get() const
Definition Field.h:112
ObjectGuid _resolvedBy
Definition TicketMgr.h:171
ObjectGuid _closedBy
Definition TicketMgr.h:170

References _assignedTo, _closedBy, _comment, _completed, _createTime, _escalatedStatus, _id, _lastModifiedTime, _mapId, _message, _needMoreHelp, _playerGuid, _playerName, _posX, _posY, _posZ, _resolvedBy, _response, _type, _viewed, and Field::Get().

Referenced by TicketMgr::LoadTickets().

◆ SaveToDB()

void GmTicket::SaveToDB ( CharacterDatabaseTransaction  trans) const
80{
81 // 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
82 // id, type, playerGuid, name, description, createTime, mapId, posX, posY, posZ, lastModifiedTime, closedBy, assignedTo, comment, response, completed, escalated, viewed, needMoreHelp, resolvedBy
83 uint8 index = 0;
85 stmt->SetData( index, _id);
86 stmt->SetData (++index, uint8(_type));
87 stmt->SetData(++index, _playerGuid.GetCounter());
88 stmt->SetData(++index, _playerName);
89 stmt->SetData(++index, _message);
90 stmt->SetData(++index, uint32(_createTime));
91 stmt->SetData(++index, _mapId);
92 stmt->SetData (++index, _posX);
93 stmt->SetData (++index, _posY);
94 stmt->SetData (++index, _posZ);
95 stmt->SetData(++index, uint32(_lastModifiedTime));
96 stmt->SetData (++index, int32(_closedBy.GetCounter()));
97 stmt->SetData(++index, _assignedTo.GetCounter());
98 stmt->SetData(++index, _comment);
99 stmt->SetData(++index, _response);
100 stmt->SetData (++index, _completed);
101 stmt->SetData (++index, uint8(_escalatedStatus));
102 stmt->SetData (++index, _viewed);
103 stmt->SetData (++index, _needMoreHelp);
104 stmt->SetData (++index, int32(_resolvedBy.GetCounter()));
105
106 CharacterDatabase.ExecuteOrAppend(trans, stmt);
107}
@ CHAR_REP_GM_TICKET
Definition CharacterDatabase.h:263
std::int32_t int32
Definition Define.h:103
LowType GetCounter() const
Definition ObjectGuid.h:145

References _assignedTo, _closedBy, _comment, _completed, _createTime, _escalatedStatus, _id, _lastModifiedTime, _mapId, _message, _needMoreHelp, _playerGuid, _playerName, _posX, _posY, _posZ, _resolvedBy, _response, _type, _viewed, CHAR_REP_GM_TICKET, CharacterDatabase, ObjectGuid::GetCounter(), and PreparedStatementBase::SetData().

Referenced by TicketMgr::AddTicket(), ticket_commandscript::HandleGMTicketAssignToCommand(), ticket_commandscript::HandleGMTicketCommentCommand(), ticket_commandscript::HandleGMTicketCompleteCommand(), ticket_commandscript::HandleGMTicketGetByIdCommand(), ticket_commandscript::HandleGMTicketGetByNameCommand(), ticket_commandscript::HandleGMTicketResponseDeleteCommand(), ticket_commandscript::HandleGMTicketUnAssignCommand(), and ticket_commandscript::TicketResponseAppend().

◆ SendResponse()

void GmTicket::SendResponse ( WorldSession session) const
136{
138 data << uint32(1); // responseID
139 data << uint32(_id); // ticketID
140 data << _message.c_str();
141
142 std::size_t len = _response.size();
143 char const* s = _response.c_str();
144
145 for (int i = 0; i < 4; i++)
146 {
147 if (len)
148 {
149 std::size_t writeLen = std::min<size_t>(len, 3999);
150 data.append(s, writeLen);
151
152 len -= writeLen;
153 s += writeLen;
154 }
155
156 data << uint8(0);
157 }
158
159 session->SendPacket(&data);
160}
Definition WorldPacket.h:26
void SendPacket(WorldPacket const *packet)
Send a packet to the client.
Definition WorldSession.cpp:226
@ SMSG_GMRESPONSE_RECEIVED
Definition Opcodes.h:1293

References _id, _message, _response, ByteBuffer::append(), WorldSession::SendPacket(), ByteBuffer::size(), and SMSG_GMRESPONSE_RECEIVED.

Referenced by ticket_commandscript::HandleGMTicketCompleteCommand().

◆ SetAssignedTo()

void GmTicket::SetAssignedTo ( ObjectGuid  guid,
bool  isAdmin 
)
inline
123 {
124 _assignedTo = guid;
129 }
@ TICKET_ESCALATED_ASSIGNED
Definition TicketMgr.h:60
@ TICKET_IN_ESCALATION_QUEUE
Definition TicketMgr.h:59
@ TICKET_ASSIGNED
Definition TicketMgr.h:58

References _assignedTo, _escalatedStatus, TICKET_ASSIGNED, TICKET_ESCALATED_ASSIGNED, TICKET_IN_ESCALATION_QUEUE, and TICKET_UNASSIGNED.

Referenced by ticket_commandscript::HandleGMTicketAssignToCommand().

◆ SetChatLog()

void GmTicket::SetChatLog ( std::list< uint32 time,
std::string const &  log 
)
244{
245 std::stringstream ss(log);
246 std::stringstream newss;
247 std::string line;
248 while (std::getline(ss, line) && !time.empty())
249 {
250 newss << secsToTimeString(time.front()) << ": " << line << "\n";
251 time.pop_front();
252 }
253
254 _chatLog = newss.str();
255}

References _chatLog, and secsToTimeString().

Referenced by WorldSession::HandleGMTicketCreateOpcode().

◆ SetClosedBy()

void GmTicket::SetClosedBy ( ObjectGuid  value)
inline
130{ _closedBy = value; _type = TICKET_TYPE_CLOSED; }
@ TICKET_TYPE_CLOSED
Definition TicketMgr.h:83

References _closedBy, _type, and TICKET_TYPE_CLOSED.

◆ SetComment()

void GmTicket::SetComment ( std::string const &  comment)
inline
134{ _comment = comment; }

References _comment.

Referenced by ticket_commandscript::HandleGMTicketCommentCommand().

◆ SetCompleted()

void GmTicket::SetCompleted ( )
inline

◆ SetEscalatedStatus()

void GmTicket::SetEscalatedStatus ( GMTicketEscalationStatus  escalatedStatus)
inline
121{ _escalatedStatus = escalatedStatus; }

References _escalatedStatus.

Referenced by ticket_commandscript::HandleGMTicketEscalateCommand().

◆ SetGmAction()

void GmTicket::SetGmAction ( uint32  needResponse,
bool  needMoreHelp 
)
233{
234 _needResponse = (needResponse == 17); // Requires GM response. 17 = true, 1 = false (17 is default)
235 _needMoreHelp = needMoreHelp; // Requests further GM interaction on a ticket to which a GM has already responded. Basically means "has a new ticket"
236}

References _needMoreHelp, and _needResponse.

Referenced by WorldSession::HandleGMTicketCreateOpcode().

◆ SetMessage()

void GmTicket::SetMessage ( std::string const &  message)
258{
259 _message = message;
261}
std::uint64_t uint64
Definition Define.h:106

References _lastModifiedTime, _message, and GameTime::GetGameTime().

Referenced by WorldSession::HandleGMTicketCreateOpcode().

◆ SetPosition()

void GmTicket::SetPosition ( uint32  mapId,
float  x,
float  y,
float  z 
)
225{
226 _mapId = mapId;
227 _posX = x;
228 _posY = y;
229 _posZ = z;
230}

References _mapId, _posX, _posY, and _posZ.

Referenced by WorldSession::HandleGMTicketCreateOpcode().

◆ SetResolvedBy()

void GmTicket::SetResolvedBy ( ObjectGuid  value)
inline

◆ SetUnassigned()

void GmTicket::SetUnassigned ( )

◆ SetViewed()

void GmTicket::SetViewed ( )
inline

◆ TeleportTo()

void GmTicket::TeleportTo ( Player player) const
239{
240 player->TeleportTo(_mapId, _posX, _posY, _posZ, 0.0f, 0);
241}
bool TeleportTo(uint32 mapid, float x, float y, float z, float orientation, uint32 options=0, Unit *target=nullptr, bool newInstance=false)
Definition Player.cpp:1338

References _mapId, _posX, _posY, _posZ, and Player::TeleportTo().

Referenced by go_commandscript::HandleGoTicketCommand().

◆ WritePacket()

void GmTicket::WritePacket ( WorldPacket data) const
117{
119 data << uint32(_id);
120 data << _message;
121 data << uint8(_needMoreHelp);
122 data << GetAge(_lastModifiedTime);
123 if (GmTicket* ticket = sTicketMgr->GetOldestOpenTicket())
124 data << GetAge(ticket->GetLastModifiedTime());
125 else
126 data << float(0);
127
128 // I am not sure how blizzlike this is, and we don't really have a way to find out
129 data << GetAge(sTicketMgr->GetLastChange());
130
131 data << uint8(std::min(_escalatedStatus, TICKET_IN_ESCALATION_QUEUE)); // escalated data
132 data << uint8(_viewed ? GMTICKET_OPENEDBYGM_STATUS_OPENED : GMTICKET_OPENEDBYGM_STATUS_NOT_OPENED); // whether or not it has been viewed
133}
float GetAge(uint64 t)
Definition TicketMgr.cpp:33
@ GMTICKET_STATUS_HASTEXT
Definition TicketMgr.h:36
@ GMTICKET_OPENEDBYGM_STATUS_NOT_OPENED
Definition TicketMgr.h:66
@ GMTICKET_OPENEDBYGM_STATUS_OPENED
Definition TicketMgr.h:67
Definition TicketMgr.h:88

References _escalatedStatus, _id, _lastModifiedTime, _message, _needMoreHelp, _viewed, GetAge(), GMTICKET_OPENEDBYGM_STATUS_NOT_OPENED, GMTICKET_OPENEDBYGM_STATUS_OPENED, GMTICKET_STATUS_HASTEXT, sTicketMgr, and TICKET_IN_ESCALATION_QUEUE.

Referenced by TicketMgr::SendTicket().

Member Data Documentation

◆ _assignedTo

◆ _chatLog

std::string GmTicket::_chatLog
private

Referenced by GetChatLog(), and SetChatLog().

◆ _closedBy

ObjectGuid GmTicket::_closedBy
private

Referenced by LoadFromDB(), SaveToDB(), and SetClosedBy().

◆ _comment

std::string GmTicket::_comment
private

◆ _completed

bool GmTicket::_completed
private

◆ _createTime

uint64 GmTicket::_createTime
private

◆ _escalatedStatus

◆ _id

◆ _lastModifiedTime

uint64 GmTicket::_lastModifiedTime
private

◆ _mapId

uint16 GmTicket::_mapId
private

◆ _message

std::string GmTicket::_message
private

◆ _needMoreHelp

bool GmTicket::_needMoreHelp
private
Todo:
: find out the use of this, and then store it in DB

Referenced by LoadFromDB(), SaveToDB(), SetGmAction(), and WritePacket().

◆ _needResponse

bool GmTicket::_needResponse
private

Referenced by SetGmAction().

◆ _playerGuid

ObjectGuid GmTicket::_playerGuid
private

◆ _playerName

std::string GmTicket::_playerName
private

◆ _posX

float GmTicket::_posX
private

◆ _posY

float GmTicket::_posY
private

◆ _posZ

float GmTicket::_posZ
private

◆ _resolvedBy

ObjectGuid GmTicket::_resolvedBy
private

Referenced by LoadFromDB(), SaveToDB(), and SetResolvedBy().

◆ _response

std::string GmTicket::_response
private

◆ _type

TicketType GmTicket::_type
private

◆ _viewed

bool GmTicket::_viewed
private

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