public class FitnessActionsTemplate extends Object implements FitnessActions
Constructor and Description |
---|
FitnessActionsTemplate(OpenGraphOperations openGraphOperations) |
Modifier and Type | Method and Description |
---|---|
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.
|
public FitnessActionsTemplate(OpenGraphOperations openGraphOperations)
public String runs(String courseUrl)
FitnessActions
runs
in interface FitnessActions
courseUrl
- The URL of the course that was run. Must reference an OpenGraph object of type "fitness.course".public String runs(String courseUrl, ActionMetadata metadata)
FitnessActions
runs
in interface FitnessActions
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.public String walks(String courseUrl)
FitnessActions
walks
in interface FitnessActions
courseUrl
- The URL of the course that was walked. Must reference an OpenGraph object of type "fitness.course".public String walks(String courseUrl, ActionMetadata metadata)
FitnessActions
walks
in interface FitnessActions
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.public String bikes(String courseUrl)
FitnessActions
bikes
in interface FitnessActions
courseUrl
- The URL of the course that was biked. Must reference an OpenGraph object of type "fitness.course".public String bikes(String courseUrl, ActionMetadata metadata)
FitnessActions
bikes
in interface FitnessActions
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.