![JAR search and dependency download from the Maven repository](/logo.png)
fr.inria.jtravis.helpers.CommitHelper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jtravis Show documentation
Show all versions of jtravis Show documentation
jTravis is a Java API for accessing TravisCI API
package fr.inria.jtravis.helpers;
import com.google.gson.JsonElement;
import fr.inria.jtravis.entities.Commit;
/**
* The helper to deal with Commit objects
*
* @author Simon Urli
*/
public class CommitHelper extends AbstractHelper {
public static Commit getCommitFromJsonElement(JsonElement element) {
return createGson().fromJson(element, Commit.class);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy