Skip to content

Instantly share code, notes, and snippets.

@kkashyap1707
Last active June 27, 2016 12:14
Show Gist options
  • Save kkashyap1707/b68b18e2f44e1aa24996eb1d26cd8362 to your computer and use it in GitHub Desktop.
Save kkashyap1707/b68b18e2f44e1aa24996eb1d26cd8362 to your computer and use it in GitHub Desktop.
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