コード例 #1
0
ファイル: BasePlatformService.cs プロジェクト: drawcode/bom
        //------------------------------------------------------------------------------
        public virtual void CountChannelByOrgIdByTypeId()
        {
            string _org_id = (string)util.GetParamValue(_context, "org_id");
            string _type_id = (string)util.GetParamValue(_context, "type_id");

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

            int i = api.CountChannelByOrgIdByTypeId(
                _org_id
                , _type_id
            );

            // get data
            wrapper.data = i;

            util.SerializeTypeToResponse(_format, _context, wrapper);
        }
コード例 #2
0
ファイル: BasePlatformService.cs プロジェクト: drawcode/bom
        //------------------------------------------------------------------------------
        public virtual void CountChannelByUuid()
        {
            string _uuid = (string)util.GetParamValue(_context, "uuid");

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

            int i = api.CountChannelByUuid(
                _uuid
            );

            // get data
            wrapper.data = i;

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

            int i = api.CountChannel(
            );

            // get data
            wrapper.data = i;

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