public class FacebookClient extends Object implements I_SocialMediaClient
Modifier and Type | Method and Description |
---|---|
String |
getCssClass()
Returns a CSS class that represents this plugin.
|
static I_SocialMediaClient |
getInstance()
Gets the single instance of FacebookClient.
|
boolean |
isConnected()
Checks if the client is connected
|
boolean |
isEnabled()
Check whether this client is actually enabled
There is no hard definition, what enabled means.
|
boolean |
publishOffer(URL permalink,
Long offerId)
Publish an offer
|
boolean |
reconnect()
Reconnect the client.
|
boolean |
send(URL url,
String message)
Send a message
|
public static final I_SocialMediaClient getInstance()
public boolean isConnected()
I_SocialMediaClient
isConnected
in interface I_SocialMediaClient
public boolean publishOffer(URL permalink, Long offerId)
I_SocialMediaClient
publishOffer
in interface I_SocialMediaClient
permalink
- a permalink to the frontend-view of the offerofferId
- the offer IDpublic boolean reconnect()
I_SocialMediaClient
reconnect
in interface I_SocialMediaClient
public boolean send(URL url, String message)
I_SocialMediaClient
send
in interface I_SocialMediaClient
url
- Any URL for further information about the messagemessage
- the message itselfpublic boolean isEnabled()
I_SocialMediaClient
isEnabled
in interface I_SocialMediaClient
public String getCssClass()
I_SocialMediaClient
getCssClass
in interface I_SocialMediaClient
Copyright © 2016 Fraunhofer FOKUS. All rights reserved.