//------------------------------------------------------------------------------ public virtual void CountChannelTypeByUuid() { string _uuid = (string)util.GetParamValue(_context, "uuid"); ResponseChannelTypeInt wrapper = new ResponseChannelTypeInt(); wrapper.message = "Success"; wrapper.code = 0; wrapper.action = "channel-type/count/by-uuid"; int i = api.CountChannelTypeByUuid( _uuid ); // get data wrapper.data = i; util.SerializeTypeToResponse(_format, _context, wrapper); }
//------------------------------------------------------------------------------ public virtual void CountChannelType() { ResponseChannelTypeInt wrapper = new ResponseChannelTypeInt(); wrapper.message = "Success"; wrapper.code = 0; wrapper.action = "channel-type/count"; int i = api.CountChannelType( ); // get data wrapper.data = i; util.SerializeTypeToResponse(_format, _context, wrapper); }