Last active
June 27, 2016 12:14
-
-
Save kkashyap1707/b68b18e2f44e1aa24996eb1d26cd8362 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.ttn.ResponseJSON; | |
import com.ttn.Model.Login; | |
import com.ttn.outputInterface.OutputInterface; | |
public class Login_Response implements OutputInterface | |
{ | |
public Object response(Object object) | |
{ | |
String Message,UserName,CityAddressInfo; | |
Login loginResponse = (Login)object; | |
Message = loginResponse.getMessage(); | |
UserName = loginResponse.getData().getFameName(); | |
CityAddressInfo = loginResponse.getData().getPreference().getUserLocation().getCity().getFormattedAddress(); | |
try | |
{ | |
if (Message.equalsIgnoreCase("Login successfully")) | |
{ | |
System.out.println("Pass Result ::" + Message + "UserName is :: "+UserName + "Address is ::" + CityAddressInfo); | |
} | |
else | |
{ | |
System.out.println("Fail Result :: " + Message); | |
} | |
} | |
catch (Exception e) | |
{ | |
} | |
return loginResponse; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment