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
224 {
225 std::string_view Id;
226 std::string_view ShareCode;
227 };
228
256
257 class Complaint final : public ClientPacket
258 {
259 public:
266
268 {
271 std::string MessageLog;
272 };
273
274 explicit Complaint(WorldPacket&& packet) : ClientPacket(CMSG_COMPLAINT, std::move(packet)) { }
275
276 void Read() override;
277
284 };
285
286 class ComplaintResult final : public ServerPacket
287 {
288 public:
290
291 WorldPacket const* Write() override;
292
295 };
296
297 class BugReport final : public ClientPacket
298 {
299 public:
300 explicit BugReport(WorldPacket&& packet) : ClientPacket(CMSG_BUG_REPORT, std::move(packet)) { }
301
302 void Read() override;
303
305 std::string Text;
306 std::string DiagInfo;
307 };
308 }
309}
310
311#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:1593
@ SMSG_GM_TICKET_SYSTEM_STATUS
Definition Opcodes.h:1594
@ SMSG_COMPLAINT_RESULT
Definition Opcodes.h:1381
@ CMSG_GM_TICKET_GET_SYSTEM_STATUS
Definition Opcodes.h:410
@ CMSG_SUBMIT_USER_FEEDBACK
Definition Opcodes.h:989
@ CMSG_SUPPORT_TICKET_SUBMIT_COMPLAINT
Definition Opcodes.h:992
@ CMSG_BUG_REPORT
Definition Opcodes.h:142
@ CMSG_COMPLAINT
Definition Opcodes.h:279
@ CMSG_GM_TICKET_ACKNOWLEDGE_SURVEY
Definition Opcodes.h:408
@ CMSG_GM_TICKET_GET_CASE_STATUS
Definition Opcodes.h:409
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< SupportTicketHousingBlueprint > HousingBlueprint
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