From c2feb363e513c0dea83d507eb9ba1918748d4e8e Mon Sep 17 00:00:00 2001 From: Jesse Morgan Date: Tue, 9 Sep 2014 07:44:01 -0700 Subject: Moving F1OAuthHelper to F1Access. F1Access will provide a collection of F1 API methods, rather than placing all of those methods in F1User as I was originally planning. --- src/com/p4square/f1oauth/SecondPartyVerifier.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/com/p4square/f1oauth/SecondPartyVerifier.java') diff --git a/src/com/p4square/f1oauth/SecondPartyVerifier.java b/src/com/p4square/f1oauth/SecondPartyVerifier.java index 9fb771f..e2d6d00 100644 --- a/src/com/p4square/f1oauth/SecondPartyVerifier.java +++ b/src/com/p4square/f1oauth/SecondPartyVerifier.java @@ -30,9 +30,9 @@ public class SecondPartyVerifier implements Verifier { private static final Logger LOG = Logger.getLogger(SecondPartyVerifier.class); private final Restlet mDispatcher; - private final F1OAuthHelper mHelper; + private final F1Access mHelper; - public SecondPartyVerifier(Context context, F1OAuthHelper helper) { + public SecondPartyVerifier(Context context, F1Access helper) { if (helper == null) { throw new IllegalArgumentException("Helper can not be null."); } @@ -79,7 +79,7 @@ public class SecondPartyVerifier implements Verifier { if (status.isSuccess()) { JacksonRepresentation entity = new JacksonRepresentation(response.getEntity(), Map.class); Map data = entity.getObject(); - return new F1User(mHelper.getBaseUrl(), user, data); + return new F1User(user, data); } else { throw new OAuthException(status); -- cgit v1.2.3