//------------------------------------------------------------------------------ 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); }
//------------------------------------------------------------------------------ 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); }
//------------------------------------------------------------------------------ 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); }