mirror of
https://github.com/jlengrand/github-api.git
synced 2026-03-24 08:21:27 +00:00
50 lines
943 B
Java
50 lines
943 B
Java
package org.kohsuke.github;
|
|
|
|
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
|
|
|
|
/**
|
|
* Wrapper to define changed fields on issues action="edited"
|
|
*
|
|
* @see GHEventPayload.Issue
|
|
*/
|
|
@SuppressFBWarnings("UWF_UNWRITTEN_FIELD")
|
|
public class GHIssueChanges {
|
|
|
|
private GHFrom title;
|
|
private GHFrom body;
|
|
|
|
/**
|
|
* Old issue title.
|
|
*
|
|
* @return old issue title (or null if not changed)
|
|
*/
|
|
public GHFrom getTitle() {
|
|
return title;
|
|
}
|
|
|
|
/**
|
|
* Old issue body.
|
|
*
|
|
* @return old issue body (or null if not changed)
|
|
*/
|
|
public GHFrom getBody() {
|
|
return body;
|
|
}
|
|
|
|
/**
|
|
* Wrapper for changed values.
|
|
*/
|
|
public static class GHFrom {
|
|
private String from;
|
|
|
|
/**
|
|
* Previous value that was changed.
|
|
*
|
|
* @return previous value
|
|
*/
|
|
public String getFrom() {
|
|
return from;
|
|
}
|
|
}
|
|
}
|