Class SmsMessageRecipients
- java.lang.Object
-
- pl.gsmservice.gateway.models.components.SmsMessageRecipients
-
public class SmsMessageRecipients extends java.lang.ObjectSmsMessageRecipientsThe recipient number or multiple recipients numbers of single message. To set one recipient, please use
SmsMessageRecipients.of(String)method simply passing to it astringwith his phone number. To set multiple recipients, please useSmsMessageRecipients.ofArrayOfStrings(List.of(String,...))method passing to itList<string>. Optionally you can also set custom id (user identifier) for each message - useSmsMessageRecipients.of(PhoneNumberWithCid)method passingPhoneNumberWithCidobject (in case of single recipient) orSmsMessageRecipients.ofArrayOfPhoneNumberWithCids(Recipients.of(PhoneNumberWithCid,...))method passing List<PhoneNumberWithCid> (in case of multiple recipients).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSmsMessageRecipients._Deserializer
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)inthashCode()static SmsMessageRecipientsof(java.lang.String value)static SmsMessageRecipientsof(PhoneNumberWithCid value)static SmsMessageRecipientsofArrayOfPhoneNumberWithCids(java.util.List<PhoneNumberWithCid> value)static SmsMessageRecipientsofArrayOfStrings(java.util.List<java.lang.String> value)java.lang.StringtoString()java.lang.Objectvalue()Returns an instance of one of these types:java.lang.Stringjava.util.List<java.lang.String>pl.gsmservice.gateway.models.components.PhoneNumberWithCidjava.util.List<pl.gsmservice.gateway.models.components.PhoneNumberWithCid>
-
-
-
Method Detail
-
of
public static SmsMessageRecipients of(java.lang.String value)
-
ofArrayOfStrings
public static SmsMessageRecipients ofArrayOfStrings(java.util.List<java.lang.String> value)
-
of
public static SmsMessageRecipients of(PhoneNumberWithCid value)
-
ofArrayOfPhoneNumberWithCids
public static SmsMessageRecipients ofArrayOfPhoneNumberWithCids(java.util.List<PhoneNumberWithCid> value)
-
value
public java.lang.Object value()
Returns an instance of one of these types:java.lang.Stringjava.util.List<java.lang.String>pl.gsmservice.gateway.models.components.PhoneNumberWithCidjava.util.List<pl.gsmservice.gateway.models.components.PhoneNumberWithCid>
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
-
-