getConnectionDetails() takes Connection rather than uri

This commit is contained in:
Andreas Schildbach 2012-06-13 17:47:03 +02:00
parent 18d42d7ae8
commit 6b92277180
4 changed files with 12 additions and 8 deletions

View file

@ -21,6 +21,7 @@ import java.io.IOException;
import java.util.Date;
import java.util.List;
import de.schildbach.pte.dto.Connection;
import de.schildbach.pte.dto.GetConnectionDetailsResult;
import de.schildbach.pte.dto.Location;
import de.schildbach.pte.dto.NearbyStationsResult;
@ -145,12 +146,12 @@ public interface NetworkProvider
/**
* Get details about a connection
*
* @param connectionUri
* uri returned via {@link NetworkProvider#queryConnections}
* @param connection
* (non-detailed) connection returned via {@link NetworkProvider#queryConnections}
* @return result object containing the details of the connection
* @throws IOException
*/
GetConnectionDetailsResult getConnectionDetails(String connectionUri) throws IOException;
GetConnectionDetailsResult getConnectionDetails(Connection connection) throws IOException;
/**
* Get style of line