Package com.restfb.types
Class CoverPhoto
- java.lang.Object
-
- com.restfb.types.AbstractFacebookType
-
- com.restfb.types.FacebookType
-
- com.restfb.types.CoverPhoto
-
- All Implemented Interfaces:
Serializable
public class CoverPhoto extends FacebookType
Represents the Cover Photo Graph API type.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.restfb.types.FacebookType
FacebookType.Metadata
-
-
Constructor Summary
Constructors Constructor Description CoverPhoto()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integer
getOffsetX()
When non-zero, the cover image overflows horizontally.Integer
getOffsetY()
When non-zero, the cover photo overflows vertically.String
getSource()
Direct URL for the person's cover photo imagevoid
setOffsetX(Integer offsetX)
When non-zero, the cover image overflows horizontally.void
setOffsetY(Integer offsetY)
When non-zero, the cover photo overflows vertically.void
setSource(String source)
Direct URL for the person's cover photo image-
Methods inherited from class com.restfb.types.FacebookType
getId, getMetadata, getType, setId, setMetadata, setType
-
Methods inherited from class com.restfb.types.AbstractFacebookType
equals, hashCode, toString
-
-
-
-
Constructor Detail
-
CoverPhoto
public CoverPhoto()
-
-
Method Detail
-
getOffsetX
public Integer getOffsetX()
When non-zero, the cover image overflows horizontally. The value indicates the offset percentage of the total image width from the left [0-100]- Returns:
- offsetX
-
setOffsetX
public void setOffsetX(Integer offsetX)
When non-zero, the cover image overflows horizontally. The value indicates the offset percentage of the total image width from the left [0-100]
-
getOffsetY
public Integer getOffsetY()
When non-zero, the cover photo overflows vertically. The value indicates the offset percentage of the total image height from the top [0-100]- Returns:
- offsetY
-
setOffsetY
public void setOffsetY(Integer offsetY)
When non-zero, the cover photo overflows vertically. The value indicates the offset percentage of the total image height from the top [0-100]
-
getSource
public String getSource()
Direct URL for the person's cover photo image- Returns:
- Direct URL for the person's cover photo image
-
-