Class SendSmsRequestBody
- java.lang.Object
-
- pl.gsmservice.gateway.models.operations.SendSmsRequestBody
-
public class SendSmsRequestBody extends java.lang.ObjectSendSmsRequestBodyTo send a single SMS or messages with the same content to multiple recipients, please use
SendSmsRequestBody.of(SmsMessage)method with a singleSmsMessageobject with the properties of this message. To send multiple messages with different content at the same time, please useSendSmsRequestBody.of(List.of(SmsMessage,...))method passing to itList<SmsMessage>with the properties of each message.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSendSmsRequestBody._Deserializer
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)inthashCode()static SendSmsRequestBodyof(java.util.List<SmsMessage> value)static SendSmsRequestBodyof(SmsMessage value)java.lang.StringtoString()java.lang.Objectvalue()Returns an instance of one of these types:pl.gsmservice.gateway.models.components.SmsMessagejava.util.List<pl.gsmservice.gateway.models.components.SmsMessage>
-
-
-
Method Detail
-
of
public static SendSmsRequestBody of(SmsMessage value)
-
of
public static SendSmsRequestBody of(java.util.List<SmsMessage> value)
-
value
public java.lang.Object value()
Returns an instance of one of these types:pl.gsmservice.gateway.models.components.SmsMessagejava.util.List<pl.gsmservice.gateway.models.components.SmsMessage>
Use
instanceofto 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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-