diff --git a/app/src/main/java/org/ntlab/amaryllis/client/SignUpActivity.java b/app/src/main/java/org/ntlab/amaryllis/client/SignUpActivity.java index 1f00e1d..1e062b7 100644 --- a/app/src/main/java/org/ntlab/amaryllis/client/SignUpActivity.java +++ b/app/src/main/java/org/ntlab/amaryllis/client/SignUpActivity.java @@ -11,7 +11,7 @@ import android.widget.EditText; import android.widget.TextView; -import org.ntlab.amaryllis.client.entities.SignupJson; +import org.ntlab.amaryllis.client.entities.SignUpJson; import org.ntlab.amaryllis.client.resources.AccountsRest; import retrofit2.Call; @@ -50,18 +50,18 @@ signUpButton.setEnabled(false); signUpButton.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { - Call call = signUpService.PostSignUp(passWordEditText.getText().toString(), nameEditText.getText().toString()); - call.enqueue(new Callback(){ + Call call = signUpService.PostSignUp(passWordEditText.getText().toString(), nameEditText.getText().toString()); + call.enqueue(new Callback(){ @Override - public void onResponse(Call call, Response response) { - SignupJson signupJson =response.body(); + public void onResponse(Call call, Response response) { + SignUpJson signupJson =response.body(); String token = signupJson.getToken(); Intent intent = new Intent(SignUpActivity.this, MapsActivity.class); startActivity(intent); } @Override - public void onFailure(Call call, Throwable t) { + public void onFailure(Call call, Throwable t) { } }); }