12.07.2015 Views

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 27 ■ API <strong>Reference</strong> 575Arguments:index—Index <strong>of</strong> a character on the event’s invite list (between 1 <strong>and</strong> CalendarEventGetNumInvites())(number)CalendarEventDeclineDeclines invitation to the selected calendar event.Only applies to player-created events <strong>and</strong> invitations sent by other players; hasno effect if the current calendar event is <strong>of</strong> another type.CalendarEventGetCalendarTypeReturns the type <strong>of</strong> the selected calendar event.calendarType = CalendarEventGetCalendarType()Returns:calendarType—Token identifying the type <strong>of</strong> event (string)GUILD_ANNOUNCEMENT—Guild announcement (does not allow players tosign up)GUILD_EVENT—Guild event (allows players to sign up)PLAYER—Player-created event or invitationCalendarEventGetInviteReturns in<strong>for</strong>mation about an entry in the selected event’s invite/signup list.name, level, className, classFileName, inviteStatus, modStatus, iinviteIsMine, inviteType = CalendarEventGetInvite(index)Arguments:index—Index <strong>of</strong> a character on the event’s invite list (between 1 <strong>and</strong>CalendarEventGetNumInvites()) (number)Returns:name—Name <strong>of</strong> the character (string)level—The character’s current level (number)className—Localized name <strong>of</strong> the character’s class (string)classFileName—Non-localized token representing the character’s class(string)inviteStatus—The character’s status regarding the event (number)1—Invited5—Out2—Accepted6—St<strong>and</strong>by3—Declined7—Signed up4—ConfirmedmodStatus—The character’s level <strong>of</strong> authority <strong>for</strong> the event, or ‘‘’’ if not applicable(number)CREATOR—The character is the original creator <strong>of</strong> the eventMODERATOR—The character has been granted moderator status <strong>for</strong> the eventinviteIsMine—True if this list entry represents the player; otherwise false(boolean)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!