TrinityCore
Loading...
Searching...
No Matches
TicketPackets.h
Go to the documentation of this file.
1/*
2 * This file is part of the TrinityCore Project. See AUTHORS file for Copyright information
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by the
6 * Free Software Foundation; either version 2 of the License, or (at your
7 * option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12 * more details.
13 *
14 * You should have received a copy of the GNU General Public License along
15 * with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18#ifndef TRINITYCORE_TICKET_PACKETS_H
19#define TRINITYCORE_TICKET_PACKETS_H
20
21#include "Packet.h"
22#include "LFGPacketsCommon.h"
23#include "Optional.h"
24#include "Position.h"
25
26namespace WorldPackets
27{
28 namespace Ticket
29 {
37
39 {
40 public:
42
43 void Read() override { }
44 };
45
47 {
48 public:
50
51 WorldPacket const* Write() override;
52
54 };
55
57 {
58 public:
60
61 void Read() override { }
62 };
63
64 class GMTicketCaseStatus final : public ServerPacket
65 {
66 public:
80
82
83 WorldPacket const* Write() override;
84
85 std::vector<GMTicketCase> Cases;
86 };
87
89 {
90 public:
92
93 void Read() override;
94
96 };
97
98 class SubmitUserFeedback final : public ClientPacket
99 {
100 public:
102
103 void Read() override;
104
106 std::string Note;
107 bool IsSuggestion = false;
108 };
109
111 {
113 SupportTicketChatLine(time_t timestamp, std::string_view text);
114
116 std::string Text;
117 };
118
124
142
147
149 {
151 std::string MailSubject;
152 std::string MailBody;
153 };
154
161
163 {
165 std::string PetName;
166 };
167
173
188
194
199
207
213
222
249
250 class Complaint final : public ClientPacket
251 {
252 public:
259
261 {
264 std::string MessageLog;
265 };
266
267 explicit Complaint(WorldPacket&& packet) : ClientPacket(CMSG_COMPLAINT, std::move(packet)) { }
268
269 void Read() override;
270
277 };
278
279 class ComplaintResult final : public ServerPacket
280 {
281 public:
283
284 WorldPacket const* Write() override;
285
288 };
289
290 class BugReport final : public ClientPacket
291 {
292 public:
293 explicit BugReport(WorldPacket&& packet) : ClientPacket(CMSG_BUG_REPORT, std::move(packet)) { }
294
295 void Read() override;
296
298 std::string Text;
299 std::string DiagInfo;
300 };
301 }
302}
303
304#endif // TRINITYCORE_TICKET_PACKETS_H
uint8_t uint8
Definition Define.h:156
int64_t int64
Definition Define.h:149
int32_t int32
Definition Define.h:150
uint64_t uint64
Definition Define.h:153
uint16_t uint16
Definition Define.h:155
uint32_t uint32
Definition Define.h:154
@ SMSG_GM_TICKET_CASE_STATUS
Definition Opcodes.h:1570
@ SMSG_GM_TICKET_SYSTEM_STATUS
Definition Opcodes.h:1571
@ SMSG_COMPLAINT_RESULT
Definition Opcodes.h:1359
@ CMSG_GM_TICKET_GET_SYSTEM_STATUS
Definition Opcodes.h:403
@ CMSG_SUBMIT_USER_FEEDBACK
Definition Opcodes.h:970
@ CMSG_SUPPORT_TICKET_SUBMIT_COMPLAINT
Definition Opcodes.h:973
@ CMSG_BUG_REPORT
Definition Opcodes.h:141
@ CMSG_COMPLAINT
Definition Opcodes.h:278
@ CMSG_GM_TICKET_ACKNOWLEDGE_SURVEY
Definition Opcodes.h:401
@ CMSG_GM_TICKET_GET_CASE_STATUS
Definition Opcodes.h:402
std::optional< T > Optional
Optional helper class to wrap optional values within.
Definition Optional.h:25
ReportType
Definition SupportMgr.h:29
BugReport(WorldPacket &&packet)
WorldPacket const * Write() override
Complaint(WorldPacket &&packet)
WorldPacket const * Write() override
std::vector< GMTicketCase > Cases
WorldPacket const * Write() override
Optional< SupportTicketLFGListEntryInfo > LfgListEntryInfo
Optional< SupportTicketArenaTeamInfo > ArenaTeamInfo
Optional< SupportTicketLFGListApplicant > LfgListAppInfo
Optional< SupportTicketMailInfo > MailInfo
Optional< SupportTicketVoiceChatInfo > VoiceChatInfo
Optional< SupportTicketHouseInfo > HouseInfo
Optional< SupportTicketClubFinderInfo > ClubFinderInfo
Optional< SupportTicketGuildInfo > GuildInfo
Optional< SupportTicketCalendarEventInfo > CalenderInfo
STL namespace.
Array< SupportTicketChatLine, 255 > Lines
TaggedPosition<::Position::XYZ > Position
Array< SupportTicketHorusChatLine, 255 > Lines