AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
CalendarInvite Struct Reference

#include "CalendarMgr.h"

Public Member Functions

 CalendarInvite (CalendarInvite const &calendarInvite, uint64 inviteId, uint64 eventId)
 
 CalendarInvite ()
 
 CalendarInvite (uint64 inviteId, uint64 eventId, ObjectGuid invitee, ObjectGuid senderGUID, time_t statusTime, CalendarInviteStatus status, CalendarModerationRank rank, std::string text)
 
 ~CalendarInvite ()
 
void SetInviteId (uint64 inviteId)
 
uint64 GetInviteId () const
 
void SetEventId (uint64 eventId)
 
uint64 GetEventId () const
 
void SetSenderGUID (ObjectGuid guid)
 
ObjectGuid GetSenderGUID () const
 
void SetInvitee (ObjectGuid guid)
 
ObjectGuid GetInviteeGUID () const
 
void SetStatusTime (time_t statusTime)
 
time_t GetStatusTime () const
 
void SetText (const std::string &text)
 
std::string GetText () const
 
void SetStatus (CalendarInviteStatus status)
 
CalendarInviteStatus GetStatus () const
 
void SetRank (CalendarModerationRank rank)
 
CalendarModerationRank GetRank () const
 

Private Attributes

uint64 _inviteId
 
uint64 _eventId
 
ObjectGuid _invitee
 
ObjectGuid _senderGUID
 
time_t _statusTime
 
CalendarInviteStatus _status
 
CalendarModerationRank _rank
 
std::string _text
 

Detailed Description

Constructor & Destructor Documentation

◆ CalendarInvite() [1/3]

CalendarInvite::CalendarInvite ( CalendarInvite const &  calendarInvite,
uint64  inviteId,
uint64  eventId 
)
inline
139 {
140 _inviteId = inviteId;
141 _eventId = eventId;
142 _invitee = calendarInvite.GetInviteeGUID();
143 _senderGUID = calendarInvite.GetSenderGUID();
144 _statusTime = calendarInvite.GetStatusTime();
145 _status = calendarInvite.GetStatus();
146 _rank = calendarInvite.GetRank();
147 _text = calendarInvite.GetText();
148 }
time_t _statusTime
Definition: CalendarMgr.h:188
CalendarModerationRank _rank
Definition: CalendarMgr.h:190
ObjectGuid _senderGUID
Definition: CalendarMgr.h:187
uint64 _inviteId
Definition: CalendarMgr.h:184
std::string _text
Definition: CalendarMgr.h:191
ObjectGuid _invitee
Definition: CalendarMgr.h:186
uint64 _eventId
Definition: CalendarMgr.h:185
CalendarInviteStatus _status
Definition: CalendarMgr.h:189

References _eventId, _invitee, _inviteId, _rank, _senderGUID, _status, _statusTime, _text, GetInviteeGUID(), GetRank(), GetSenderGUID(), GetStatus(), GetStatusTime(), and GetText().

◆ CalendarInvite() [2/3]

CalendarInvite::CalendarInvite ( )
@ CALENDAR_RANK_PLAYER
Definition: CalendarMgr.h:45
@ CALENDAR_STATUS_INVITED
Definition: CalendarMgr.h:76
Seconds GetGameTime()
Definition: GameTime.cpp:38

◆ CalendarInvite() [3/3]

CalendarInvite::CalendarInvite ( uint64  inviteId,
uint64  eventId,
ObjectGuid  invitee,
ObjectGuid  senderGUID,
time_t  statusTime,
CalendarInviteStatus  status,
CalendarModerationRank  rank,
std::string  text 
)
inline
153 :
154 _inviteId(inviteId), _eventId(eventId), _invitee(invitee), _senderGUID(senderGUID), _statusTime(statusTime),
155 _status(status), _rank(rank), _text(text) { }

◆ ~CalendarInvite()

CalendarInvite::~CalendarInvite ( )
32{
33 // Free _inviteId only if it's a real invite and not just a pre-invite or guild announcement
34 if (_inviteId != 0 && _eventId != 0)
35 sCalendarMgr->FreeInviteId(_inviteId);
36}
#define sCalendarMgr
Definition: CalendarMgr.h:344

References _eventId, _inviteId, and sCalendarMgr.

Member Function Documentation

◆ GetEventId()

◆ GetInviteeGUID()

◆ GetInviteId()

◆ GetRank()

◆ GetSenderGUID()

ObjectGuid CalendarInvite::GetSenderGUID ( ) const
inline

◆ GetStatus()

◆ GetStatusTime()

◆ GetText()

std::string CalendarInvite::GetText ( ) const
inline

◆ SetEventId()

void CalendarInvite::SetEventId ( uint64  eventId)
inline
162{ _eventId = eventId; }

References _eventId.

◆ SetInvitee()

void CalendarInvite::SetInvitee ( ObjectGuid  guid)
inline
168{ _invitee = guid; }

References _invitee.

◆ SetInviteId()

void CalendarInvite::SetInviteId ( uint64  inviteId)
inline
159{ _inviteId = inviteId; }

References _inviteId.

◆ SetRank()

void CalendarInvite::SetRank ( CalendarModerationRank  rank)
inline
180{ _rank = rank; }

References _rank.

◆ SetSenderGUID()

void CalendarInvite::SetSenderGUID ( ObjectGuid  guid)
inline
165{ _senderGUID = guid; }

References _senderGUID.

◆ SetStatus()

void CalendarInvite::SetStatus ( CalendarInviteStatus  status)
inline
177{ _status = status; }

References _status.

◆ SetStatusTime()

void CalendarInvite::SetStatusTime ( time_t  statusTime)
inline
171{ _statusTime = statusTime; }

References _statusTime.

◆ SetText()

void CalendarInvite::SetText ( const std::string &  text)
inline
174{ _text = text; }

References _text.

Member Data Documentation

◆ _eventId

uint64 CalendarInvite::_eventId
private

◆ _invitee

ObjectGuid CalendarInvite::_invitee
private

◆ _inviteId

uint64 CalendarInvite::_inviteId
private

◆ _rank

CalendarModerationRank CalendarInvite::_rank
private

Referenced by CalendarInvite(), GetRank(), and SetRank().

◆ _senderGUID

ObjectGuid CalendarInvite::_senderGUID
private

◆ _status

CalendarInviteStatus CalendarInvite::_status
private

◆ _statusTime

time_t CalendarInvite::_statusTime
private

◆ _text

std::string CalendarInvite::_text
private

Referenced by CalendarInvite(), GetText(), and SetText().