示例#1
0
        /** All the completed wars related with particular user with "maximum" recent items.
         *
         * 获取某用户已完成战役列表(最近的maximum个)。返回:一组War的列表
         *
         *
         * Return: Array of War Object
         */
        private static byte[] GetUserSeiges(Credential credential, string email, BigInteger maximum)
        {
            User       user = RW.FindUser(email);
            BigInteger tot  = RW.NumUserSiegeHistory(user);
            BigInteger num  = (tot > maximum) ? maximum : tot;

            return(NuTP.RespDataWithCode(NuTP.SysDom, NuTP.Code.ServiceUnavailable));
        }