#ifndef OnAuctionExpiredMessage_h #define OnAuctionExpiredMessage_h //#include "AuctionBase.h" #include "sharedNetworkMessages/GameNetworkMessage.h" #include "sharedFoundation/NetworkId.h" #include "Unicode.h" class OnAuctionExpiredMessage : public GameNetworkMessage { public: OnAuctionExpiredMessage( const NetworkId & ownerId, bool sold, const NetworkId & buyerId, int bidAmount, const NetworkId & itemId, int maxProxyBid, const std::string & location, bool immediate, int itemNameLength, const Unicode::String &itemName, bool sendSellerMail ); OnAuctionExpiredMessage(Archive::ReadIterator & source); ~OnAuctionExpiredMessage(); const NetworkId & GetItemId() const {return m_itemId.get();} const NetworkId & GetOwnerId() const {return m_ownerId.get();} const NetworkId & GetBuyerId() const {return m_buyerId.get();} int GetBid() const {return m_bidAmount.get();} int GetMaxProxyBid() const {return m_maxProxyBid.get();} const std::string & GetLocation() const {return m_location.get();} bool IsSold() const {return m_sold.get();} bool IsImmediate() const {return m_immediate.get();} int GetItemNameLength() const {return m_itemNameLength.get();} const Unicode::String & GetItemName() const {return m_itemName.get();} int GetResponseId () const {return m_responseId.get();} int GetTrackId () const {return m_trackId.get();} void SetTrackId (int trackId) {m_trackId.set(trackId);} bool GetSendSellerMail() const {return m_sendSellerMail.get();} protected: private: Archive::AutoVariable m_responseId; Archive::AutoVariable m_trackId; Archive::AutoVariable m_ownerId; Archive::AutoVariable m_sold; Archive::AutoVariable m_buyerId; Archive::AutoVariable m_bidAmount; Archive::AutoVariable m_itemId; Archive::AutoVariable m_maxProxyBid; Archive::AutoVariable m_location; Archive::AutoVariable m_immediate; Archive::AutoVariable m_itemNameLength; Archive::AutoVariable m_itemName; Archive::AutoVariable m_sendSellerMail; }; #endif