Пример #1
0
 /**
  * @param torrent
  * @return -1: No rating
  */
 public static int getUserRating(TOTorrent torrent) {
   Map mapContent = getTempContentMap(torrent);
   Long l = (Long) mapContent.get(TOR_AZ_PROP_USER_RATING);
   if (l == null) {
     return -1;
   }
   return l.intValue();
 }
 public int getIntParameter(String parameter, int defaultValue) {
   Long tempValue = getLongParameterRaw(parameter);
   return tempValue != null ? tempValue.intValue() : defaultValue;
 }