fr.zebasto.dailymotion.sdk.api.endpoint.VideoEndpoint Maven / Gradle / Ivy
The newest version!
package fr.zebasto.dailymotion.sdk.api.endpoint;
import fr.zebasto.dailymotion.sdk.api.Endpoint;
import fr.zebasto.dailymotion.sdk.api.dto.Video;
/**
* Created by Bastien on 13/01/2014.
*/
public enum VideoEndpoint implements Endpoint {
ALL("videos", Video.class),
ID("video/{0}", Video.class),
ME("me/" + ALL.value, ALL.clazz);
/**
* Defines the URL of the Endpoint
*/
private String value;
/**
* Defines the expected class returned in list
*/
private Class clazz;
/**
* {@inheritDoc}
*/
public String getValue() {
return this.value;
}
/**
* {@inheritDoc}
*/
public Class getClazz() {
return this.clazz;
}
/**
* Default constructor for the Endpoint
*
* @param value The url of the endpoint
* @param clazz The class that will be returned inside the list
*/
private VideoEndpoint(String value, Class clazz) {
this.value = value;
this.clazz = clazz;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy