// GENERATED by a one-off script from the enum definitions at the time this file was added. // Message IDs are sent on the wire and are append-only: never renumber, reuse or remove one. // If one of these fails to compile, the change to the enum is wrong, not this file. // New enumerators may be added freely; add a pin for them here too. #include "Mail.h" #include #include // Mail::eMessageID: 21 enumerators static_assert(static_cast(Mail::eMessageID::SendRequest) == 0); static_assert(static_cast(Mail::eMessageID::SendResponse) == 1); static_assert(static_cast(Mail::eMessageID::NotificationResponse) == 2); static_assert(static_cast(Mail::eMessageID::DataRequest) == 3); static_assert(static_cast(Mail::eMessageID::DataResponse) == 4); static_assert(static_cast(Mail::eMessageID::AttachmentCollectRequest) == 5); static_assert(static_cast(Mail::eMessageID::AttachmentCollectResponse) == 6); static_assert(static_cast(Mail::eMessageID::DeleteRequest) == 7); static_assert(static_cast(Mail::eMessageID::DeleteResponse) == 8); static_assert(static_cast(Mail::eMessageID::ReadRequest) == 9); static_assert(static_cast(Mail::eMessageID::ReadResponse) == 10); static_assert(static_cast(Mail::eMessageID::NotificationRequest) == 11); static_assert(static_cast(Mail::eMessageID::AuctionCreate) == 12); static_assert(static_cast(Mail::eMessageID::AuctionCreationResponse) == 13); static_assert(static_cast(Mail::eMessageID::AuctionCancel) == 14); static_assert(static_cast(Mail::eMessageID::AuctionCancelResponse) == 15); static_assert(static_cast(Mail::eMessageID::AuctionList) == 16); static_assert(static_cast(Mail::eMessageID::AuctionListResponse) == 17); static_assert(static_cast(Mail::eMessageID::AuctionBid) == 18); static_assert(static_cast(Mail::eMessageID::AuctionBidResponse) == 19); static_assert(static_cast(Mail::eMessageID::UnknownError) == 20); // Mail::eSendResponse: 15 enumerators static_assert(static_cast(Mail::eSendResponse::Success) == 0); static_assert(static_cast(Mail::eSendResponse::NotEnoughCoins) == 1); static_assert(static_cast(Mail::eSendResponse::AttachmentNotFound) == 2); static_assert(static_cast(Mail::eSendResponse::ItemCannotBeMailed) == 3); static_assert(static_cast(Mail::eSendResponse::CannotMailSelf) == 4); static_assert(static_cast(Mail::eSendResponse::RecipientNotFound) == 5); static_assert(static_cast(Mail::eSendResponse::RecipientDifferentFaction) == 6); static_assert(static_cast(Mail::eSendResponse::UnHandled7) == 7); static_assert(static_cast(Mail::eSendResponse::ModerationFailure) == 8); static_assert(static_cast(Mail::eSendResponse::SenderAccountIsMuted) == 9); static_assert(static_cast(Mail::eSendResponse::UnHandled10) == 10); static_assert(static_cast(Mail::eSendResponse::RecipientIsIgnored) == 11); static_assert(static_cast(Mail::eSendResponse::UnHandled12) == 12); static_assert(static_cast(Mail::eSendResponse::RecipientIsFTP) == 13); static_assert(static_cast(Mail::eSendResponse::UnknownError) == 14); // Mail::eDeleteResponse: 5 enumerators static_assert(static_cast(Mail::eDeleteResponse::Success) == 0); static_assert(static_cast(Mail::eDeleteResponse::HasAttachments) == 1); static_assert(static_cast(Mail::eDeleteResponse::NotFound) == 2); static_assert(static_cast(Mail::eDeleteResponse::Throttled) == 3); static_assert(static_cast(Mail::eDeleteResponse::UnknownError) == 4); // Mail::eAttachmentCollectResponse: 6 enumerators static_assert(static_cast(Mail::eAttachmentCollectResponse::Success) == 0); static_assert(static_cast(Mail::eAttachmentCollectResponse::AttachmentNotFound) == 1); static_assert(static_cast(Mail::eAttachmentCollectResponse::NoSpaceInInventory) == 2); static_assert(static_cast(Mail::eAttachmentCollectResponse::MailNotFound) == 3); static_assert(static_cast(Mail::eAttachmentCollectResponse::Throttled) == 4); static_assert(static_cast(Mail::eAttachmentCollectResponse::UnknownError) == 5); // Mail::eNotificationResponse: 9 enumerators static_assert(static_cast(Mail::eNotificationResponse::NewMail) == 0); static_assert(static_cast(Mail::eNotificationResponse::UnHandled) == 1); static_assert(static_cast(Mail::eNotificationResponse::AuctionWon) == 2); static_assert(static_cast(Mail::eNotificationResponse::AuctionSold) == 3); static_assert(static_cast(Mail::eNotificationResponse::AuctionOutbided) == 4); static_assert(static_cast(Mail::eNotificationResponse::AuctionExpired) == 5); static_assert(static_cast(Mail::eNotificationResponse::AuctionCancelled) == 6); static_assert(static_cast(Mail::eNotificationResponse::AuctionUpdated) == 7); static_assert(static_cast(Mail::eNotificationResponse::UnknownError) == 8); // Mail::eReadResponse: 2 enumerators static_assert(static_cast(Mail::eReadResponse::Success) == 0); static_assert(static_cast(Mail::eReadResponse::UnknownError) == 1); // Mail::eAuctionCreateResponse: 5 enumerators static_assert(static_cast(Mail::eAuctionCreateResponse::Success) == 0); static_assert(static_cast(Mail::eAuctionCreateResponse::NotEnoughMoney) == 1); static_assert(static_cast(Mail::eAuctionCreateResponse::ItemNotFound) == 2); static_assert(static_cast(Mail::eAuctionCreateResponse::ItemNotSellable) == 3); static_assert(static_cast(Mail::eAuctionCreateResponse::UnknownError) == 4); // Mail::eAuctionCancelResponse: 5 enumerators static_assert(static_cast(Mail::eAuctionCancelResponse::NotFound) == 0); static_assert(static_cast(Mail::eAuctionCancelResponse::NotYours) == 1); static_assert(static_cast(Mail::eAuctionCancelResponse::HasBid) == 2); static_assert(static_cast(Mail::eAuctionCancelResponse::NoLongerExists) == 3); static_assert(static_cast(Mail::eAuctionCancelResponse::UnknownError) == 4); TEST(MailIdPinTests, MailEnumValuesArePinned) { SUCCEED(); }