
org.fastily.jwiki.dwrap.DataEntry Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jwiki Show documentation
Show all versions of jwiki Show documentation
A library for effortlessly interacting with Wikipedia/MediaWiki
package org.fastily.jwiki.dwrap;
import java.time.Instant;
import com.google.gson.annotations.SerializedName;
/**
* Structured data template class.
*
* @author Fastily
*
*/
public abstract class DataEntry
{
/**
* The name of the user who made the contribution.
*/
public String user;
/**
* Title and edit summary.
*/
public String title;
/**
* The edit summary used in this contribution.
*/
@SerializedName("comment")
public String summary;
/**
* The date and time at which this edit was made.
*/
public Instant timestamp;
/**
* Constructor, creates a DataEntry with all null fields.
*/
protected DataEntry()
{
}
/**
* Gets a String representation of this DataEntry. Useful for debugging.
*/
public String toString()
{
return String.format("[ user : %s, title : %s, summary : %s, timestamp : %s ]", user, title, summary, timestamp);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy