
ru.sms_activate.response.api_activation.SMSActivateActivation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of SMSActivateApi Show documentation
Show all versions of SMSActivateApi Show documentation
Lib for working with sms activate API.
package ru.sms_activate.response.api_activation;
import org.jetbrains.annotations.NotNull;
public class SMSActivateActivation {
/**
* Id activation.
*/
private final int activation;
/**
* Phone number.
*/
private final long phone;
/**
* The name of the service for which the activation was purchased.
*/
private final String service;
/**
* Constructor activation
*
* @param id id activation.
* @param number phone number.
* @param service service name.
*/
public SMSActivateActivation(int id, long number, @NotNull String service) {
this.activation = id;
this.phone = number;
this.service = service;
}
/**
* Returns the id activation.
*
* @return id activation.
*/
public int getId() {
return activation;
}
/**
* Returns the phone number.
*
* @return phone number.
*/
public long getNumber() {
return phone;
}
/**
* Returns the name of the service for which the activation was purchased.
*
* @return name of the service for which the activation was purchased.
*/
@NotNull
public String getShortName() {
return service;
}
@Override
public String toString() {
return "SMSActivateActivation{" +
"activation=" + activation +
", phone=" + phone +
", service='" + service + '\'' +
'}';
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy