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

com.aliction.gitproviders.bitbucket.objects.BitbucketObject Maven / Gradle / Ivy

There is a newer version: 0.2.1
Show newest version
package com.aliction.gitproviders.bitbucket.objects;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * This is the base abstract class for all objects
 * @author Aly Ibrahim
 * Date: Oct 25, 2019
 *
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public abstract class BitbucketObject {

    private String uuid;
    private String created_on;
    private BitbucketObjectType type;

    /**
     * 
     * @param uuid - String uuid
     * @param created_on - String creation date
     * @param type - BitbucketObjectType type
     */
    public BitbucketObject(@JsonProperty("uuid") final String uuid,
                                @JsonProperty("created_on") final String created_on,
                                @JsonProperty("type") final BitbucketObjectType type) {
        super();
        this.uuid = uuid;
        this.created_on = created_on;
        this.type = type;
    }

    /**
     * 
     * @return object UUID
     */
    public String getUuid() {
        return uuid;
    }

    /**
     * 
     * @return creation time of the object
     */
    public String getCreated_on() {
        return created_on;
    }

    /**
     * 
     * @return object type
     */
    public BitbucketObjectType getType() {
        return type;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy