diff options
author | Jesse Morgan <jesse@jesterpm.net> | 2014-09-09 07:44:01 -0700 |
---|---|---|
committer | Jesse Morgan <jesse@jesterpm.net> | 2014-09-09 07:44:01 -0700 |
commit | c2feb363e513c0dea83d507eb9ba1918748d4e8e (patch) | |
tree | 8ba314d14f86aff178adac5ba46ca35e037c6569 /src/com/p4square/f1oauth/SecondPartyVerifier.java | |
parent | 66469ff2f76ac916e289e066377570b38554fdcc (diff) |
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.
Diffstat (limited to 'src/com/p4square/f1oauth/SecondPartyVerifier.java')
-rw-r--r-- | src/com/p4square/f1oauth/SecondPartyVerifier.java | 6 |
1 files changed, 3 insertions, 3 deletions
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<Map> entity = new JacksonRepresentation<Map>(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); |