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

com.hextremelabs.ussd.dto.UssdRequest Maven / Gradle / Ivy

The newest version!
package com.hextremelabs.ussd.dto;

/**
 * Value object representing HTTP request from telco. Request comes in like this:
 * provider=airtel&msisdn=2348024675639&sessionid=14568284374231393&message={@literal *}833{@literal *}400#
 *
 * @author Oluremi Adekanmbi
 * @author Sayo Oladeji
 */
public class UssdRequest {

  private String provider;
  private String msisdn;
  private String sessionId;
  private String message;


  public UssdRequest(String provider, String msisdn, String sessionId, String message) {
    this.provider = provider;
    this.msisdn = msisdn;
    this.sessionId = sessionId;
    this.message = message;
  }

  public String getProvider() {
    return provider;
  }

  public String getMsisdn() {
    return msisdn;
  }

  public String getSessionId() {
    return sessionId;
  }

  public String getMessage() {
    return message;
  }

  @Override
  public String toString() {
    return "Data{" + "provider=" + provider + ", msisdn=" + msisdn + ", sessionId=" + sessionId + ", message=" + message + '}';
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy