Class GetSmsPriceRequestBody


  • public class GetSmsPriceRequestBody
    extends java.lang.Object
    GetSmsPriceRequestBody

    To check the price of a single message or messages with the same content to multiple recipients, pass a single SmsMessage object with the properties of this message using GetSmsPriceRequestBody.of(SmsMessage) method. To check the price of multiple messages with different content at the same time, pass a List<SmsMessage> with the properties of each message using GetSmsPriceRequestBody.of(List.of(SmsMessage,...)) method.

    • Method Detail

      • value

        public java.lang.Object value()
        Returns an instance of one of these types:
        • pl.gsmservice.gateway.models.components.SmsMessage
        • java.util.List<pl.gsmservice.gateway.models.components.SmsMessage>

        Use instanceof to determine what type is returned. For example:

         if (obj.value() instanceof String) {
             String answer = (String) obj.value();
             System.out.println("answer=" + answer);
         }
         
        Returns:
        value of oneOf type
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object