//------------------------------------------------------------------------------ public virtual void CountVideoByUrl() { string _url = (string)util.GetParamValue(_context, "url"); ResponseVideoInt wrapper = new ResponseVideoInt(); wrapper.message = "Success"; wrapper.code = 0; wrapper.action = "video/count/by-url"; int i = api.CountVideoByUrl( _url ); // get data wrapper.data = i; util.SerializeTypeToResponse(_format, _context, wrapper); }
//------------------------------------------------------------------------------ public virtual void CountVideoByUuidByExternalId() { string _uuid = (string)util.GetParamValue(_context, "uuid"); string _external_id = (string)util.GetParamValue(_context, "external_id"); ResponseVideoInt wrapper = new ResponseVideoInt(); wrapper.message = "Success"; wrapper.code = 0; wrapper.action = "video/count/by-uuid/by-external-id"; int i = api.CountVideoByUuidByExternalId( _uuid , _external_id ); // get data wrapper.data = i; util.SerializeTypeToResponse(_format, _context, wrapper); }
//------------------------------------------------------------------------------ public virtual void CountVideo() { ResponseVideoInt wrapper = new ResponseVideoInt(); wrapper.message = "Success"; wrapper.code = 0; wrapper.action = "video/count"; int i = api.CountVideo( ); // get data wrapper.data = i; util.SerializeTypeToResponse(_format, _context, wrapper); }