Exemple #1
0
        //------------------------------------------------------------------------------
        public virtual void BrowseProfileQuestionListByFilter()
        {
            ResponseProfileQuestionList wrapper = new ResponseProfileQuestionList();
            wrapper.message = "Success";
            wrapper.code = 0;
            wrapper.action = "profile-question/browse/by-filter";

            SearchFilter obj = new SearchFilter();
            obj.page = Convert.ToInt32(util.GetParamValue(_context, "page"));
            obj.page_size = Convert.ToInt32(util.GetParamValue(_context, "page-size"));
            obj.filter = util.GetParamValue(_context, "filter");

            ProfileQuestionResult result = api.BrowseProfileQuestionListByFilter(obj);
            wrapper.info.Add("total_rows", result.total_rows);
            wrapper.info.Add("total_pages", result.total_pages);
            wrapper.info.Add("page", result.page);
            wrapper.info.Add("page_size", result.page_size);

            // get data
            wrapper.data = result.data;

            util.SerializeTypeToResponse(_format, _context, wrapper);
        }
Exemple #2
0
        //------------------------------------------------------------------------------
        public virtual void GetProfileQuestionListByChannelIdByOrgId()
        {
            string _channel_id = (string)util.GetParamValue(_context, "channel_id");
            string _org_id = (string)util.GetParamValue(_context, "org_id");

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

            List<ProfileQuestion> objs = api.GetProfileQuestionListByChannelIdByOrgId(
                _channel_id
                , _org_id
            );

            // get data
            wrapper.data = objs;

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

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

            List<ProfileQuestion> objs = api.GetProfileQuestionListByUuid(
                _uuid
            );

            // get data
            wrapper.data = objs;

            util.SerializeTypeToResponse(_format, _context, wrapper);
        }
Exemple #4
0
        //------------------------------------------------------------------------------
        public virtual void GetProfileQuestionList()
        {
            ResponseProfileQuestionList wrapper = new ResponseProfileQuestionList();
            wrapper.message = "Success";
            wrapper.code = 0;
            wrapper.action = "profile-question/get";

            List<ProfileQuestion> objs = api.GetProfileQuestionList(
            );

            // get data
            wrapper.data = objs;

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