Beispiel #1
0
        //------------------------------------------------------------------------------
        public virtual void CountQuestionByChannelIdByOrgId()
        {
            string _channel_id = (string)util.GetParamValue(_context, "channel_id");
            string _org_id = (string)util.GetParamValue(_context, "org_id");

            ResponseQuestionInt wrapper = new ResponseQuestionInt();
            wrapper.message = "Success";
            wrapper.code = 0;
            wrapper.action = "question/count/by-channel-id/by-org-id";

            int i = api.CountQuestionByChannelIdByOrgId(
                _channel_id
                , _org_id
            );

            // get data
            wrapper.data = i;

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

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

            int i = api.CountQuestionByUuid(
                _uuid
            );

            // get data
            wrapper.data = i;

            util.SerializeTypeToResponse(_format, _context, wrapper);
        }
Beispiel #3
0
        //------------------------------------------------------------------------------
        public virtual void CountQuestion()
        {
            ResponseQuestionInt wrapper = new ResponseQuestionInt();
            wrapper.message = "Success";
            wrapper.code = 0;
            wrapper.action = "question/count";

            int i = api.CountQuestion(
            );

            // get data
            wrapper.data = i;

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