Skip to content

Instantly share code, notes, and snippets.

@kkashyap1707

kkashyap1707/ResponseJSON

Last active Jun 27, 2016
Embed
What would you like to do?
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
You can’t perform that action at this time.