#ifndef __DOWNLOAD_DEF_G_H #define __DOWNLOAD_DEF_G_H #pragma once // This code is generated by spgen tool! #include "SpHelper.h" namespace Download { // // const goes here // #define DownloadService_Method_DownloadFile 0 #define DownloadService_Method_IsDownloading 1 #define DownloadService_Method_CancelDownloadFile 2 #define DownloadService_Method_QueryDownloadState 3 #define DownloadService_MethodSignature_DownloadFile 1681898988 #define DownloadService_MethodSignature_IsDownloading 772750151 #define DownloadService_MethodSignature_CancelDownloadFile -1360464111 #define DownloadService_MethodSignature_QueryDownloadState 754956501 struct DownloadService_DownloadFile_Req { CSimpleStringA strFileName; unsigned int dwExpireTime; void Serialize(SpBuffer &Buf) { auto & buf = Buf & strFileName & dwExpireTime; } }; struct DownloadService_DownloadFile_Ans { void Serialize(SpBuffer &Buf) { } }; struct DownloadService_IsDownloading_Req { void Serialize(SpBuffer &Buf) { } }; struct DownloadService_IsDownloading_Ans { bool bDownloading; void Serialize(SpBuffer &Buf) { auto & buf = Buf & bDownloading; } }; struct DownloadService_CancelDownloadFile_Req { CSimpleStringA strFileName; void Serialize(SpBuffer &Buf) { auto & buf = Buf & strFileName; } }; struct DownloadService_CancelDownloadFile_Ans { void Serialize(SpBuffer &Buf) { } }; struct DownloadService_QueryDownloadState_Req { CSimpleStringA strFileName; void Serialize(SpBuffer &Buf) { auto & buf = Buf & strFileName; } }; struct DownloadService_QueryDownloadState_Ans { unsigned int iDownloadState; void Serialize(SpBuffer &Buf) { auto & buf = Buf & iDownloadState; } }; /////////////////////////// } // namespace Download #endif // __DOWNLOAD_DEF_G_H