org.springframework.social.facebook.api.impl
Class FitnessActionsTemplate

java.lang.Object
  extended by org.springframework.social.facebook.api.impl.FitnessActionsTemplate
All Implemented Interfaces:
FitnessActions

public class FitnessActionsTemplate
extends Object
implements FitnessActions


Constructor Summary
FitnessActionsTemplate(OpenGraphOperations openGraphOperations)
           
 
Method Summary
 String bikes(String courseUrl)
          Publishes a "fitness.bikes" action for the OpenGraph course object at the given URL.
 String bikes(String courseUrl, ActionMetadata metadata)
          Publishes a "fitness.bikes" action for the OpenGraph course object at the given URL.
 String runs(String courseUrl)
          Publishes a "fitness.runs" action for the OpenGraph course object at the given URL.
 String runs(String courseUrl, ActionMetadata metadata)
          Publishes a "fitness.runs" action for the OpenGraph course object at the given URL.
 String walks(String courseUrl)
          Publishes a "fitness.walks" action for the OpenGraph course object at the given URL.
 String walks(String courseUrl, ActionMetadata metadata)
          Publishes a "fitness.walks" action for the OpenGraph course object at the given URL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FitnessActionsTemplate

public FitnessActionsTemplate(OpenGraphOperations openGraphOperations)
Method Detail

runs

public String runs(String courseUrl)
Description copied from interface: FitnessActions
Publishes a "fitness.runs" action for the OpenGraph course object at the given URL.

Specified by:
runs in interface FitnessActions
Parameters:
courseUrl - The URL of the course that was run. Must reference an OpenGraph object of type "fitness.course".
Returns:
The ID for the action created.

runs

public String runs(String courseUrl,
                   ActionMetadata metadata)
Description copied from interface: FitnessActions
Publishes a "fitness.runs" action for the OpenGraph course object at the given URL.

Specified by:
runs in interface FitnessActions
Parameters:
courseUrl - The URL of the course that was run. Must reference an OpenGraph object of type "fitness.course".
metadata - Action metadata to be applied to the action.
Returns:
The ID for the action created.

walks

public String walks(String courseUrl)
Description copied from interface: FitnessActions
Publishes a "fitness.walks" action for the OpenGraph course object at the given URL.

Specified by:
walks in interface FitnessActions
Parameters:
courseUrl - The URL of the course that was walked. Must reference an OpenGraph object of type "fitness.course".
Returns:
The ID for the action created.

walks

public String walks(String courseUrl,
                    ActionMetadata metadata)
Description copied from interface: FitnessActions
Publishes a "fitness.walks" action for the OpenGraph course object at the given URL.

Specified by:
walks in interface FitnessActions
Parameters:
courseUrl - The URL of the course that was walked. Must reference an OpenGraph object of type "fitness.course".
metadata - Action metadata to be applied to the action.
Returns:
The ID for the action created.

bikes

public String bikes(String courseUrl)
Description copied from interface: FitnessActions
Publishes a "fitness.bikes" action for the OpenGraph course object at the given URL.

Specified by:
bikes in interface FitnessActions
Parameters:
courseUrl - The URL of the course that was biked. Must reference an OpenGraph object of type "fitness.course".
Returns:
The ID for the action created.

bikes

public String bikes(String courseUrl,
                    ActionMetadata metadata)
Description copied from interface: FitnessActions
Publishes a "fitness.bikes" action for the OpenGraph course object at the given URL.

Specified by:
bikes in interface FitnessActions
Parameters:
courseUrl - The URL of the course that was biked. Must reference an OpenGraph object of type "fitness.course".
metadata - Action metadata to be applied to the action.
Returns:
The ID for the action created.