1
0
mirror of https://github.com/Rogiel/httpchannel synced 2025-12-05 23:22:51 +00:00

Implements uptobox.com upload service

This commit is contained in:
2012-05-06 00:21:38 -03:00
parent d838636f2a
commit 4a9da1708e
10 changed files with 651 additions and 12 deletions

View File

@@ -31,8 +31,8 @@ package com.rogiel.httpchannel.service;
* quota</li>
* <li>{@link BandwidthQuotaAccountDetails} - for services that have limited
* bandwidth quota</li>
* <li>{@link FilesizeLimitAccountDetails} - for services that have limited
* file sizes depending on the account</li>
* <li>{@link FilesizeLimitAccountDetails} - for services that have limited file
* sizes depending on the account</li>
* </ul>
* You should not try to cast instances by yourself, instead they should be
* safely casted as such:
@@ -166,4 +166,34 @@ public interface AccountDetails {
*/
long getMaximumFilesize();
}
/**
* Service accounts that has referring support
*
* @author <a href="http://www.rogiel.com">Rogiel</a>
*/
public interface ReferralAccountDetails extends AccountDetails {
/**
* @return the number of members referred
*/
int getMembersReferred();
/**
* @return the account referral URL
*/
String getReferralURL();
}
/**
* Service account that has points attached to it (normally acquired through
* downloads of files from the account)
*
* @author <a href="http://www.rogiel.com">Rogiel</a>
*/
public interface PointAccountDetails extends AccountDetails {
/**
* @return the number of point on the account
*/
int getPoints();
}
}