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

ru.sms_activate.response.api_activation.SMSActivateActivation Maven / Gradle / Ivy

There is a newer version: 1.5.9
Show newest version
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