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

com.almworks.jira.structure.api.rest.RestVersion Maven / Gradle / Ivy

There is a newer version: 17.25.3
Show newest version
package com.almworks.jira.structure.api.rest;

import com.almworks.jira.structure.api.pull.DataVersion;
import org.jetbrains.annotations.NotNull;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement
public class RestVersion {
  @XmlElement
  public int signature;

  @XmlElement
  public int version;

  public static RestVersion fromModel(@NotNull DataVersion version) {
    RestVersion r = new RestVersion();
    r.signature = version.getSignature();
    r.version = version.getVersion();
    return r;
  }

  public DataVersion toModel() {
    return new DataVersion(signature, version);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy