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

com.plivo.api.models.enduser.EndUserCreator Maven / Gradle / Ivy

Go to download

A Java SDK to make voice calls & send SMS using Plivo and to generate Plivo XML

There is a newer version: 5.44.3
Show newest version
package com.plivo.api.models.enduser;

import com.plivo.api.models.base.Creator;
import com.plivo.api.util.Utils;
import retrofit2.Call;

public class EndUserCreator extends Creator {

    private String name;
    private String lastName;
    private String endUserType;

    EndUserCreator(String name, String lastName, String endUserType) {
        if (!Utils.allNotNull(name, lastName)) {
            throw new IllegalArgumentException("name, lastName must not be null");
        }

        this.name = name;
        this.endUserType = endUserType;
        this.lastName = lastName;
    }

    public String getEndUserType() {
        return endUserType;
    }

    public String getLastName() {
        return lastName;
    }

    public String getName() {
        return name;
    }

    @Override
    protected Call obtainCall() {
        return client().getApiService().endUserCreate(client().getAuthId(), this);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy