 Oldin Kinrod |
Posted - 2011.09.02 01:56:00 - [ 1]
Hey all,
Since the new Api is out I've been updating a small project I've been working on, and thought this might be handy to others. Basically it's an enum in C# (can easily be ported to others) that allows bitwise checking against certain flags.
[Flags] public enum ApiKeyMask { AccountBalance = 1 << 0, AssetList = 1 << 1, CalendarEventAttendees = 1 << 2, CharacterSheet = 1 << 3, ContactList = 1 << 4, ContactNotifications = 1 << 5, FacWarStats = 1 << 6, IndustryJobs = 1 << 7, KillLog = 1 << 8, MailBodies = 1 << 9, MailingLists = 1 << 10, MailMessages = 1 << 11, MarketOrders = 1 << 12, Medals = 1 << 13, Notifications = 1 << 14, NotificationTexts = 1 << 15, Research = 1 << 16, SkillInTraining = 1 << 17, SkillQueue = 1 << 18, Standings = 1 << 19, UpcomingCalendarEvents = 1 << 20, WalletJournal = 1 << 21, WalletTransactions = 1 << 22, CharacterInfoPublic = 1 << 23, CharacterInfoPrivate = 1 << 24, AccountStatus = 1 << 25, Contracts = 1 << 26, }
Enjoy :) |