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