TrinityCore
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 TicketPackets_h__
19#define TicketPackets_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 {
31 {
34 float Facing = 0.0f;
36 };
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:
68 {
75 std::string Url;
77 };
78
80
81 WorldPacket const* Write() override;
82
83 std::vector<GMTicketCase> Cases;
84 };
85
87 {
88 public:
90
91 void Read() override;
92
94 };
95
96 class SubmitUserFeedback final : public ClientPacket
97 {
98 public:
100
101 void Read() override;
102
104 std::string Note;
105 bool IsSuggestion = false;
106 };
107
109 {
111 SupportTicketChatLine(time_t timestamp, std::string const& text);
112
114 std::string Text;
115 };
116
118 {
121 };
122
124 {
126
128 {
132 };
133
140 std::string Text;
141 };
142
144 {
146 };
147
149 {
151 std::string MailSubject;
152 std::string MailBody;
153 };
154
156 {
159 std::string EventTitle;
160 };
161
163 {
165 std::string PetName;
166 };
167
169 {
171 std::string GuildName;
172 };
173
175 {
184 std::string Title;
185 std::string Description;
186 std::string VoiceChat;
187 };
188
190 {
192 std::string Comment;
193 };
194
196 {
197 bool IsPlayerUsingVoice = false;
198 };
199
201 {
205 std::string ClubName;
206 };
207
209 {
210 std::string field_0;
212 };
213
215 {
216 public:
218
219 void Read() override;
220
228 std::string Note;
238 };
239
240 class Complaint final : public ClientPacket
241 {
242 public:
244 {
248 };
249
251 {
254 std::string MessageLog;
255 };
256
257 Complaint(WorldPacket&& packet) : ClientPacket(CMSG_COMPLAINT, std::move(packet)) { }
258
259 void Read() override;
260
267 };
268
269 class ComplaintResult final : public ServerPacket
270 {
271 public:
273
274 WorldPacket const* Write() override;
275
278 };
279
280 class BugReport final : public ClientPacket
281 {
282 public:
283 BugReport(WorldPacket&& packet) : ClientPacket(CMSG_BUG_REPORT, std::move(packet)) { }
284
285 void Read() override;
286
288 std::string Text;
289 std::string DiagInfo;
290 };
291 }
292}
293
294#endif // TicketPackets_h__
uint8_t uint8
Definition: Define.h:144
int64_t int64
Definition: Define.h:137
int32_t int32
Definition: Define.h:138
uint64_t uint64
Definition: Define.h:141
uint16_t uint16
Definition: Define.h:143
uint32_t uint32
Definition: Define.h:142
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
Definition: TicketPackets.h:83
WorldPacket const * Write() override
SubmitUserFeedback(WorldPacket &&packet)
Definition: TicketPackets.h:99
Optional< SupportTicketClubFinderResult > ClubFinderResult
Optional< SupportTicketLFGListSearchResult > LFGListSearchResult
Optional< SupportTicketCommunityMessage > CommunityMessage
Optional< SupportTicketUnused910 > Unused910
Optional< SupportTicketPetInfo > PetInfo
Optional< SupportTicketMailInfo > MailInfo
Optional< SupportTicketLFGListApplicant > LFGListApplicant
Optional< SupportTicketGuildInfo > GuildInfo
Optional< SupportTicketCalendarEventInfo > CalenderInfo
@ CMSG_GM_TICKET_GET_SYSTEM_STATUS
Definition: Opcodes.h:388
@ CMSG_SUBMIT_USER_FEEDBACK
Definition: Opcodes.h:829
@ CMSG_SUPPORT_TICKET_SUBMIT_COMPLAINT
Definition: Opcodes.h:832
@ CMSG_BUG_REPORT
Definition: Opcodes.h:148
@ CMSG_COMPLAINT
Definition: Opcodes.h:277
@ CMSG_GM_TICKET_ACKNOWLEDGE_SURVEY
Definition: Opcodes.h:386
@ CMSG_GM_TICKET_GET_CASE_STATUS
Definition: Opcodes.h:387
@ SMSG_GM_TICKET_CASE_STATUS
Definition: Opcodes.h:1353
@ SMSG_GM_TICKET_SYSTEM_STATUS
Definition: Opcodes.h:1354
@ SMSG_COMPLAINT_RESULT
Definition: Opcodes.h:1150
STL namespace.
Array< SupportTicketChatLine, 255 > Lines
TaggedPosition<::Position::XYZ > Position
Definition: TicketPackets.h:33
Array< SupportTicketHorusChatLine, 255 > Lines