All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.kohsuke.github.GHLabelChanges Maven / Gradle / Ivy

The newest version!
package org.kohsuke.github;

import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;

// TODO: Auto-generated Javadoc
/**
 * Wrapper to define changed fields on label action="edited".
 *
 * @see GHEventPayload.Label
 */
@SuppressFBWarnings("UWF_UNWRITTEN_FIELD")
public class GHLabelChanges {

    /**
     * Create default GHLabelChanges instance
     */
    public GHLabelChanges() {
    }

    private GHFrom name;
    private GHFrom color;

    /**
     * Old label name.
     *
     * @return old label name (or null if not changed)
     */
    public GHFrom getName() {
        return name;
    }

    /**
     * Old label color.
     *
     * @return old label color (or null if not changed)
     */
    public GHFrom getColor() {
        return color;
    }

    /**
     * Wrapper for changed values.
     */
    public static class GHFrom {

        /**
         * Create default GHFrom instance
         */
        public GHFrom() {
        }

        private String from;

        /**
         * Previous value that was changed.
         *
         * @return previous value
         */
        public String getFrom() {
            return from;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy