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

ru.sms_activate.response.api_activation.extra.SMSActivateCurrentActivation Maven / Gradle / Ivy

There is a newer version: 1.5.9
Show newest version
package ru.sms_activate.response.api_activation.extra;

import org.jetbrains.annotations.NotNull;

public class SMSActivateCurrentActivation {
    /**
     * Activation id.
     */
    private int id;

    /**
     * Activation is forward.
     */
    private int forward;

    /**
     * Activation phone number.
     */
    private long phoneNumber;

    /**
     * Service for activation.
     */
    private String service;

    /**
     * Country activation.
     */
    private int country;

    private SMSActivateCurrentActivation() {
    }

    /**
     * Returns the service activation.
     *
     * @return service activation
     */
    @NotNull
    public String getService() {
        return service;
    }

    /**
     * Returns the country activation.
     *
     * @return country activation.
     */
    public int getCountry() {
        return country;
    }

    /**
     * Returns the activation id.
     *
     * @return activation id
     */
    public int getId() {
        return id;
    }

    /**
     * Returns the forward activation.
     *
     * @return forward activation
     */
    public boolean isForward() {
        return forward == 1;
    }

    /**
     * Returns the activation phone number.
     *
     * @return activation phone number
     */
    public long getPhoneNumber() {
        return phoneNumber;
    }

    @Override
    public String toString() {
        return "SMSActivateCurrentActivation{" +
          "id=" + id +
          ", forward=" + forward +
          ", phoneNumber=" + phoneNumber +
          ", service='" + service + '\'' +
          ", country=" + country +
          '}';
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy