コード例 #1
0
ファイル: BaseGamingService.cs プロジェクト: drawcode/bom
        //------------------------------------------------------------------------------
        public virtual void CountRewardTypeByUuid()
        {
            string _uuid = (string)util.GetParamValue(_context, "uuid");

            ResponseRewardTypeInt wrapper = new ResponseRewardTypeInt();
            wrapper.message = "Success";
            wrapper.code = 0;
            wrapper.action = "reward-type/count/by-uuid";

            int i = api.CountRewardTypeByUuid(
                _uuid
            );

            // get data
            wrapper.data = i;

            util.SerializeTypeToResponse(_format, _context, wrapper);
        }
コード例 #2
0
ファイル: BaseGamingService.cs プロジェクト: drawcode/bom
        //------------------------------------------------------------------------------
        public virtual void CountRewardType()
        {
            ResponseRewardTypeInt wrapper = new ResponseRewardTypeInt();
            wrapper.message = "Success";
            wrapper.code = 0;
            wrapper.action = "reward-type/count";

            int i = api.CountRewardType(
            );

            // get data
            wrapper.data = i;

            util.SerializeTypeToResponse(_format, _context, wrapper);
        }