public class ShortenResponse extends GooGlResponse
{
"kind": "urlshortener#url",
"id": "http://goo.gl/fbsS",
"longUrl": "http://www.google.com/"
}
error| Constructor and Description |
|---|
ShortenResponse() |
| Modifier and Type | Method and Description |
|---|---|
String |
getKind() |
String |
getLongUrl()
longUrl is the long URL to which it expands.
|
String |
getShortUrl()
Id is the short URL that expands to the long URL you provided.
|
void |
setKind(String kind) |
void |
setLongUrl(String longUrl) |
void |
setShortUrl(String shortUrl) |
String |
toString() |
getError, hasErrors, setErrorpublic String getKind()
public void setKind(String kind)
public String getShortUrl()
public void setShortUrl(String shortUrl)
public String getLongUrl()
public void setLongUrl(String longUrl)
Copyright © 2011-2013. All Rights Reserved.