TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
TicketPackets.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2008-2016 TrinityCore <http://www.trinitycore.org/>
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 "LFGPackets.h"
23 #include <G3D/Vector3.h>
24 
25 namespace WorldPackets
26 {
27  namespace Ticket
28  {
30  {
31  int32 MapID = 0;
33  float Facing = 0.0f;
34  };
35 
37  {
38  public:
40 
41  void Read() override { }
42  };
43 
44  class GMTicketSystemStatus final : public ServerPacket
45  {
46  public:
48 
49  WorldPacket const* Write() override;
50 
52  };
53 
54  class GMTicketGetCaseStatus final : public ClientPacket
55  {
56  public:
58 
59  void Read() override { }
60  };
61 
62  class GMTicketCaseStatus final : public ServerPacket
63  {
64  public:
65  struct GMTicketCase
66  {
73  std::string Url;
75  };
76 
78 
79  WorldPacket const* Write() override;
80 
81  std::vector<GMTicketCase> Cases;
82  };
83 
85  {
86  public:
88 
89  void Read() override;
90 
92  };
93 
94  class SupportTicketSubmitBug final : public ClientPacket
95  {
96  public:
98 
99  void Read() override;
100 
102  std::string Note;
103  };
104 
106  {
107  public:
109 
110  void Read() override;
111 
113  std::string Note;
114  };
115 
117  {
118  public:
120  {
122  SupportTicketChatLine(uint32 timestamp, std::string const& text);
123 
125  std::string Text;
126  };
127 
129  {
130  std::vector<SupportTicketChatLine> Lines;
132  };
133 
135  {
137  std::string MailSubject;
138  std::string MailBody;
139  };
140 
142  {
145  std::string EventTitle;
146  };
147 
149  {
151  std::string PetName;
152  };
153 
155  {
157  std::string GuildName;
158  };
159 
161  {
167  std::string Title;
168  std::string Description;
169  std::string VoiceChat;
170  };
171 
173  {
175  std::string Comment;
176  };
177 
179 
180  void Read() override;
181 
186  std::string Note;
193 
194  };
195 
196  class Complaint final : public ClientPacket
197  {
198  public:
200  {
204  };
205 
207  {
210  std::string MessageLog;
211  };
212 
213  Complaint(WorldPacket&& packet) : ClientPacket(CMSG_COMPLAINT, std::move(packet)) { }
214 
215  void Read() override;
216 
223 
224  };
225 
226  class ComplaintResult final : public ServerPacket
227  {
228  public:
230 
231  WorldPacket const* Write() override;
232 
235  };
236 
237  class BugReport final : public ClientPacket
238  {
239  public:
240  BugReport(WorldPacket&& packet) : ClientPacket(CMSG_BUG_REPORT, std::move(packet)) { }
241 
242  void Read() override;
243 
245  std::string Text;
246  std::string DiagInfo;
247  };
248  }
249 }
250 
251 #endif // TicketPackets_h__
std::string Note
Definition: TicketPackets.h:102
SupportTicketHeader Header
Definition: TicketPackets.h:182
GMTicketCaseStatus()
Definition: TicketPackets.h:77
std::string Note
Definition: TicketPackets.h:186
Definition: Opcodes.h:922
Definition: ByteBuffer.h:70
Definition: SupportMgr.h:53
Definition: Opcodes.h:660
ObjectGuid TargetCharacterGUID
Definition: TicketPackets.h:184
uint8 ComplaintType
Definition: TicketPackets.h:217
Definition: TicketPackets.h:62
int64_t int64
Definition: Define.h:145
ObjectGuid InviteGuid
Definition: TicketPackets.h:222
void Read() override
Definition: TicketPackets.h:59
SupportTicketHeader Header
Definition: TicketPackets.h:101
SupportTicketSubmitSuggestion(WorldPacket &&packet)
Definition: TicketPackets.h:108
GMTicketAcknowledgeSurvey(WorldPacket &&packet)
Definition: TicketPackets.h:87
int32 MapID
Definition: TicketPackets.h:31
G3D::Vector3 Position
Definition: TicketPackets.h:32
uint32 Command
Definition: TicketPackets.h:208
ComplaintChat Chat
Definition: TicketPackets.h:220
SupportTicketHeader Header
Definition: TicketPackets.h:112
uint32 ComplaintType
Definition: TicketPackets.h:233
STL namespace.
std::string Url
Definition: TicketPackets.h:73
ComplaintResult()
Definition: TicketPackets.h:229
Definition: Opcodes.h:118
ComplaintOffender Offender
Definition: TicketPackets.h:218
std::string WaitTimeOverrideMessage
Definition: TicketPackets.h:74
Definition: Opcodes.h:662
Optional< SupportTicketLFGListApplicant > LFGListApplicant
Definition: TicketPackets.h:192
std::string Note
Definition: TicketPackets.h:113
Definition: TicketPackets.h:94
uint32 RealmAddress
Definition: TicketPackets.h:202
GMTicketGetCaseStatus(WorldPacket &&packet)
Definition: TicketPackets.h:57
void Read() override
Definition: TicketPackets.cpp:65
Definition: Vector3.h:58
Definition: Opcodes.h:225
Optional< SupportTicketGuildInfo > GuildInfo
Definition: TicketPackets.h:190
int16 CfgRealmID
Definition: TicketPackets.h:70
int32 WaitTimeOverrideMinutes
Definition: TicketPackets.h:72
ObjectGuid PlayerGuid
Definition: TicketPackets.h:201
Definition: Packet.h:59
Definition: TicketPackets.h:44
WorldPacket const * Write() override
Definition: TicketPackets.cpp:270
uint8 ComplaintType
Definition: TicketPackets.h:185
uint32 TimeSinceOffence
Definition: TicketPackets.h:203
Optional< SupportTicketLFGListSearchResult > LFGListSearchResult
Definition: TicketPackets.h:191
Complaint(WorldPacket &&packet)
Definition: TicketPackets.h:213
Optional< SupportTicketPetInfo > PetInfo
Definition: TicketPackets.h:189
GMTicketSystemStatus()
Definition: TicketPackets.h:47
Definition: Packet.h:46
SupportTicketSubmitComplaint(WorldPacket &&packet)
Definition: TicketPackets.h:178
void Read() override
Definition: TicketPackets.cpp:192
uint8 Result
Definition: TicketPackets.h:234
int32_t int32
Definition: Define.h:146
uint32_t uint32
Definition: Define.h:150
uint64_t uint64
Definition: Define.h:149
Definition: TicketPackets.h:237
float Facing
Definition: TicketPackets.h:33
WorldPacket const * Write() override
Definition: TicketPackets.cpp:41
boost::optional< T > Optional
Optional helper class to wrap optional values within.
Definition: Common.h:170
std::string DiagInfo
Definition: TicketPackets.h:246
void Read() override
Definition: TicketPackets.cpp:248
Definition: TicketPackets.h:206
int32 CaseID
Definition: TicketPackets.h:67
int64 CharacterID
Definition: TicketPackets.h:71
Definition: BattlegroundMgr.h:57
SupportTicketChatLog ChatLog
Definition: TicketPackets.h:183
Optional< SupportTicketMailInfo > MailInfo
Definition: TicketPackets.h:187
void Read() override
Definition: TicketPackets.cpp:76
WorldPackets::LFG::RideTicket RideTicket
Definition: TicketPackets.h:174
Definition: TicketPackets.h:36
int32 CaseStatus
Definition: TicketPackets.h:69
WorldPacket const * Write() override
Definition: TicketPackets.cpp:34
uint32 MailID
Definition: TicketPackets.h:219
Optional< uint32 > ReportLineIndex
Definition: TicketPackets.h:131
Optional< SupportTicketCalendarEventInfo > CalenderInfo
Definition: TicketPackets.h:188
Definition: TicketPackets.h:29
Definition: Opcodes.h:300
Definition: LFGPackets.h:27
uint8_t uint8
Definition: Define.h:152
void Read() override
Definition: TicketPackets.cpp:70
ObjectGuid EventGuid
Definition: TicketPackets.h:221
void Read() override
Definition: TicketPackets.cpp:278
int16_t int16
Definition: Define.h:147
Definition: ObjectGuid.h:189
std::vector< GMTicketCase > Cases
Definition: TicketPackets.h:81
BugReport(WorldPacket &&packet)
Definition: TicketPackets.h:240
Definition: Opcodes.h:661
Definition: Opcodes.h:1054
Definition: Opcodes.h:299
Definition: TicketPackets.h:54
Type
Type of JSON value.
Definition: rapidjson.h:642
SupportTicketSubmitBug(WorldPacket &&packet)
Definition: TicketPackets.h:97
WorldPackets::LFG::RideTicket RideTicket
Definition: TicketPackets.h:162
GMTicketGetSystemStatus(WorldPacket &&packet)
Definition: TicketPackets.h:39
int32 CaseOpened
Definition: TicketPackets.h:68
std::vector< SupportTicketChatLine > Lines
Definition: TicketPackets.h:130
int32 CaseID
Definition: TicketPackets.h:91
Definition: TicketPackets.h:196
Definition: WorldPacket.h:26
void Read() override
Definition: TicketPackets.h:41
Definition: Opcodes.h:1053
Definition: TicketPackets.h:226
std::string Text
Definition: TicketPackets.h:245
int32 Status
Definition: TicketPackets.h:51
std::string MessageLog
Definition: TicketPackets.h:210
uint32 ChannelID
Definition: TicketPackets.h:209
Definition: Opcodes.h:298
SupportTicketChatLine(ByteBuffer &data)
Definition: TicketPackets.cpp:82