fr.zebasto.dailymotion.sdk.api.endpoint.SubtitleEndpoint 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.Subtitle;
/**
* Created by Bastien on 13/01/2014.
*/
public enum SubtitleEndpoint implements Endpoint {
ID("subtitle/{0}", Subtitle.class);
/**
* 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 SubtitleEndpoint(String value, Class clazz) {
this.value = value;
this.clazz = clazz;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy