mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-25 06:58:39 +00:00
removed extra parameter correctByDeclination on IgtimiConnectionFactory.connect where it wasn't used
This commit is contained in:
+2
-3
@@ -8,7 +8,6 @@ import org.apache.http.client.ClientProtocolException;
|
||||
import org.json.simple.parser.ParseException;
|
||||
import org.xml.sax.SAXException;
|
||||
|
||||
import com.sap.sailing.declination.DeclinationService;
|
||||
import com.sap.sailing.domain.igtimiadapter.oauth.AuthorizationCallback;
|
||||
|
||||
/**
|
||||
@@ -21,7 +20,7 @@ import com.sap.sailing.domain.igtimiadapter.oauth.AuthorizationCallback;
|
||||
public interface IgtimiConnectionFactory {
|
||||
Iterable<Account> getAllAccounts();
|
||||
|
||||
IgtimiConnection connect(Account account, boolean correctByDeclination);
|
||||
IgtimiConnection connect(Account account);
|
||||
|
||||
/**
|
||||
* Removes the account and the credentials associated with it permanently. The account is identified by the e-mail
|
||||
@@ -39,7 +38,7 @@ public interface IgtimiConnectionFactory {
|
||||
/**
|
||||
* Using the "account" service, retrieves the {@link Account} information for this access token and stores the token
|
||||
* that authorizes this factory's client to access the account together with the {@link Account} data. This information is
|
||||
* used when a caller wants to {@link #connect(Account, DeclinationService)} to a specific account on behalf of the {@link Client} to
|
||||
* used when a caller wants to {@link #connect(Account)} to a specific account on behalf of the {@link Client} to
|
||||
* which this factory belongs.
|
||||
* @return
|
||||
*/
|
||||
|
||||
+1
-1
@@ -130,7 +130,7 @@ public class IgtimiConnectionFactoryImpl implements IgtimiConnectionFactory {
|
||||
}
|
||||
|
||||
@Override
|
||||
public IgtimiConnection connect(Account account, boolean correctByDeclination) {
|
||||
public IgtimiConnection connect(Account account) {
|
||||
return new IgtimiConnectionImpl(this, account);
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -44,7 +44,7 @@ public class IgtimiWindTracker extends AbstractWindTracker implements WindTracke
|
||||
for (Account account : accounts) {
|
||||
try {
|
||||
if (!stopping) {
|
||||
IgtimiConnection connection = connectionFactory.connect(account, correctByDeclination);
|
||||
IgtimiConnection connection = connectionFactory.connect(account);
|
||||
Iterable<String> devicesWeShouldListenTo = connection.getWindDevices();
|
||||
if (!stopping) {
|
||||
LiveDataConnection liveConnection = connection.getOrCreateLiveConnection(devicesWeShouldListenTo);
|
||||
|
||||
Reference in New Issue
Block a user