Beispiel #1
0
        //------------------------------------------------------------------------------
        public virtual void CountProfileQuestionByChannelIdByProfileId()
        {
            string _channel_id = (string)util.GetParamValue(_context, "channel_id");
            string _profile_id = (string)util.GetParamValue(_context, "profile_id");

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

            int i = api.CountProfileQuestionByChannelIdByProfileId(
                _channel_id
                , _profile_id
            );

            // get data
            wrapper.data = i;

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

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

            int i = api.CountProfileQuestionByUuid(
                _uuid
            );

            // get data
            wrapper.data = i;

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

            int i = api.CountProfileQuestion(
            );

            // get data
            wrapper.data = i;

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