com.github.alexdlaird.ngrok.protocol.Version Maven / Gradle / Ivy
/*
* Copyright (c) 2021-2024 Alex Laird
*
* SPDX-License-Identifier: MIT
*/
package com.github.alexdlaird.ngrok.protocol;
/**
* An object representing ngrok
's version and java-ngrok
's version.
*/
public class Version {
private final String ngrokVersion;
private final String javaNgrokVersion;
/**
* Construct a version.
*
* @param ngrokVersion The ngrok
version.
* @param javaNgrokVersion The java-ngrok
version.
*/
public Version(final String ngrokVersion, final String javaNgrokVersion) {
this.ngrokVersion = ngrokVersion;
this.javaNgrokVersion = javaNgrokVersion;
}
/**
* Get the ngrok
version.
*/
public String getNgrokVersion() {
return ngrokVersion;
}
/**
* Get the java-ngrok
version.
*/
public String getJavaNgrokVersion() {
return javaNgrokVersion;
}
}