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)
 
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:174
TicketType _type
Definition: TicketMgr.h:159
float _posZ
Definition: TicketMgr.h:163
bool _completed
Definition: TicketMgr.h:172
GMTicketEscalationStatus _escalatedStatus
Definition: TicketMgr.h:173
bool _needResponse
Definition: TicketMgr.h:175
bool _needMoreHelp
Definition: TicketMgr.h:176
float _posY
Definition: TicketMgr.h:162
uint16 _mapId
Definition: TicketMgr.h:164
uint32 _id
Definition: TicketMgr.h:157
float _posX
Definition: TicketMgr.h:161
uint64 _createTime
Definition: TicketMgr.h:166
uint64 _lastModifiedTime
Definition: TicketMgr.h:167

◆ GmTicket() [2/2]

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

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

◆ ~GmTicket()

GmTicket::~GmTicket ( )
47{ }

Member Function Documentation

◆ AppendResponse()

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

References _response.

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

◆ DeleteFromDB()

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

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

◆ FormatMessageString() [1/2]

std::string GmTicket::FormatMessageString ( ChatHandler handler,
bool  detailed = false 
) const
162{
163 time_t curTime = GameTime::GetGameTime().count();
164
165 std::stringstream ss;
168 ss << handler.PGetParseString(LANG_COMMAND_TICKETLISTAGECREATE, (secsToTimeString(curTime - _createTime, true)).c_str());
169 ss << handler.PGetParseString(LANG_COMMAND_TICKETLISTAGE, (secsToTimeString(curTime - _lastModifiedTime, true)).c_str());
170
171 std::string name;
172 if (sCharacterCache->GetCharacterNameByGuid(_assignedTo, name))
173 {
174 ss << handler.PGetParseString(LANG_COMMAND_TICKETLISTASSIGNEDTO, name.c_str());
175 }
176
177 if (detailed)
178 {
180 if (!_comment.empty())
182 if (!_response.empty())
184 }
185 return ss.str();
186}
std::string secsToTimeString(uint64 timeInSecs, bool shortText)
Definition: Util.cpp:73
#define sCharacterCache
Definition: CharacterCache.h:83
@ LANG_COMMAND_TICKETLISTGUID
Definition: Language.h:1046
@ LANG_COMMAND_TICKETLISTCOMMENT
Definition: Language.h:1052
@ LANG_COMMAND_TICKETLISTAGE
Definition: Language.h:1048
@ LANG_COMMAND_TICKETLISTRESPONSE
Definition: Language.h:1058
@ LANG_COMMAND_TICKETLISTASSIGNEDTO
Definition: Language.h:1049
@ LANG_COMMAND_TICKETLISTAGECREATE
Definition: Language.h:1054
@ LANG_COMMAND_TICKETLISTMESSAGE
Definition: Language.h:1051
@ LANG_COMMAND_TICKETLISTNAME
Definition: Language.h:1047
std::string PGetParseString(uint32 entry, Args &&... args) const
Definition: Chat.h:72
std::string _message
Definition: TicketMgr.h:165
ObjectGuid _assignedTo
Definition: TicketMgr.h:170
std::string _comment
Definition: TicketMgr.h:171

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(), and ticket_commandscript::HandleGMTicketUnAssignCommand().

◆ FormatMessageString() [2/2]

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

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:260

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
154{ return _chatLog; }
std::string _chatLog
Definition: TicketMgr.h:178

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.

◆ IsAssigned()

bool GmTicket::IsAssigned ( ) const
inline

◆ IsAssignedNotTo()

bool GmTicket::IsAssignedNotTo ( ObjectGuid  guid) const
inline

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

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

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 ticket_commandscript::_HandleGMTicketResponseAppendCommand(), TicketMgr::AddTicket(), ticket_commandscript::HandleGMTicketAssignToCommand(), ticket_commandscript::HandleGMTicketCommentCommand(), ticket_commandscript::HandleGMTicketCompleteCommand(), ticket_commandscript::HandleGMTicketGetByIdCommand(), ticket_commandscript::HandleGMTicketGetByNameCommand(), and ticket_commandscript::HandleGMTicketUnAssignCommand().

◆ SendResponse()

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

References _id, _message, _response, ByteBuffer::append(), WorldSession::SendPacket(), 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 
)
243{
244 std::stringstream ss(log);
245 std::stringstream newss;
246 std::string line;
247 while (std::getline(ss, line) && !time.empty())
248 {
249 newss << secsToTimeString(time.front()) << ": " << line << "\n";
250 time.pop_front();
251 }
252
253 _chatLog = newss.str();
254}

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 
)
232{
233 _needResponse = (needResponse == 17); // Requires GM response. 17 = true, 1 = false (17 is default)
234 _needMoreHelp = needMoreHelp; // Requests further GM interaction on a ticket to which a GM has already responded. Basically means "has a new ticket"
235}

References _needMoreHelp, and _needResponse.

Referenced by WorldSession::HandleGMTicketCreateOpcode().

◆ SetMessage()

void GmTicket::SetMessage ( std::string const &  message)
257{
258 _message = message;
260}
std::uint64_t uint64
Definition: Define.h:107

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

Referenced by WorldSession::HandleGMTicketCreateOpcode().

◆ SetPosition()

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

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
238{
239 player->TeleportTo(_mapId, _posX, _posY, _posZ, 0.0f, 0);
240}
bool TeleportTo(uint32 mapid, float x, float y, float z, float orientation, uint32 options=0, Unit *target=nullptr, bool newInstance=false)
Definition: Player.cpp:1314

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

Referenced by go_commandscript::HandleGoTicketCommand().

◆ WritePacket()

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