Example #1
0
        //------------------------------------------------------------------------------
        public virtual void CountAppByPlatformByTypeId()
        {
            string _platform = (string)util.GetParamValue(_context, "platform");
            string _type_id = (string)util.GetParamValue(_context, "type_id");

            ResponseAppInt wrapper = new ResponseAppInt();
            wrapper.message = "Success";
            wrapper.code = 0;
            wrapper.action = "app/count/by-platform/by-type-id";

            int i = api.CountAppByPlatformByTypeId(
                _platform
                , _type_id
            );

            // get data
            wrapper.data = i;

            util.SerializeTypeToResponse(_format, _context, wrapper);
        }
Example #2
0
        //------------------------------------------------------------------------------
        public virtual void CountAppByUuid()
        {
            string _uuid = (string)util.GetParamValue(_context, "uuid");

            ResponseAppInt wrapper = new ResponseAppInt();
            wrapper.message = "Success";
            wrapper.code = 0;
            wrapper.action = "app/count/by-uuid";

            int i = api.CountAppByUuid(
                _uuid
            );

            // get data
            wrapper.data = i;

            util.SerializeTypeToResponse(_format, _context, wrapper);
        }
Example #3
0
        //------------------------------------------------------------------------------
        public virtual void CountApp()
        {
            ResponseAppInt wrapper = new ResponseAppInt();
            wrapper.message = "Success";
            wrapper.code = 0;
            wrapper.action = "app/count";

            int i = api.CountApp(
            );

            // get data
            wrapper.data = i;

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