Class MmsMessage
- java.lang.Object
-
- pl.gsmservice.gateway.models.components.MmsMessage
-
public class MmsMessage extends java.lang.ObjectMmsMessageAn object with a new MMS message properties
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMmsMessage.Builder
-
Constructor Summary
Constructors Constructor Description MmsMessage(Recipients recipients)MmsMessage(Recipients recipients, org.openapitools.jackson.nullable.JsonNullable<java.lang.String> subject, org.openapitools.jackson.nullable.JsonNullable<java.lang.String> message, java.util.Optional<? extends Attachments> attachments, org.openapitools.jackson.nullable.JsonNullable<java.time.OffsetDateTime> date)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<Attachments>attachments()Attachments for the message.static MmsMessage.Builderbuilder()org.openapitools.jackson.nullable.JsonNullable<java.time.OffsetDateTime>date()Scheduled future date and time of sending the message (in ISO 8601 format).booleanequals(java.lang.Object o)inthashCode()org.openapitools.jackson.nullable.JsonNullable<java.lang.String>message()MMS message contentRecipientsrecipients()The recipient number or multiple recipients numbers of single message.org.openapitools.jackson.nullable.JsonNullable<java.lang.String>subject()MMS message subjectjava.lang.StringtoString()MmsMessagewithAttachments(java.util.Optional<? extends Attachments> attachments)Attachments for the message.MmsMessagewithAttachments(Attachments attachments)Attachments for the message.MmsMessagewithDate(java.time.OffsetDateTime date)Scheduled future date and time of sending the message (in ISO 8601 format).MmsMessagewithDate(org.openapitools.jackson.nullable.JsonNullable<java.time.OffsetDateTime> date)Scheduled future date and time of sending the message (in ISO 8601 format).MmsMessagewithMessage(java.lang.String message)MMS message contentMmsMessagewithMessage(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> message)MMS message contentMmsMessagewithRecipients(Recipients recipients)The recipient number or multiple recipients numbers of single message.MmsMessagewithSubject(java.lang.String subject)MMS message subjectMmsMessagewithSubject(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> subject)MMS message subject
-
-
-
Constructor Detail
-
MmsMessage
public MmsMessage(Recipients recipients, org.openapitools.jackson.nullable.JsonNullable<java.lang.String> subject, org.openapitools.jackson.nullable.JsonNullable<java.lang.String> message, java.util.Optional<? extends Attachments> attachments, org.openapitools.jackson.nullable.JsonNullable<java.time.OffsetDateTime> date)
-
MmsMessage
public MmsMessage(Recipients recipients)
-
-
Method Detail
-
recipients
public Recipients recipients()
The recipient number or multiple recipients numbers of single message. To set one recipient, please useRecipients.of(String)method simply passing to it astringwith his phone number. To set multiple recipients, please useRecipients.ofArrayOfStrings(List.of(String,...))method passing to itList<string>. Optionally you can also set custom id (user identifier) for each message - useRecipients.of(PhoneNumberWithCid)method passingPhoneNumberWithCidobject (in case of single recipient) orRecipients.ofArrayOfPhoneNumberWithCids(Recipients.of(PhoneNumberWithCid,...))method passing List<PhoneNumberWithCid> (in case of multiple recipients).
-
subject
public org.openapitools.jackson.nullable.JsonNullable<java.lang.String> subject()
MMS message subject
-
message
public org.openapitools.jackson.nullable.JsonNullable<java.lang.String> message()
MMS message content
-
attachments
public java.util.Optional<Attachments> attachments()
Attachments for the message. You can pass here images, audio and video files bodies. To set one attachment please useAttachments.of(String)method simply passing to it astringwith attachment body encoded bybase64. To set multiple attachments please useAttachments.of(List.of(String,...))method passing to itList<string>with attachments bodies encoded bybase64. Max 3 attachments per message.
-
date
public org.openapitools.jackson.nullable.JsonNullable<java.time.OffsetDateTime> date()
Scheduled future date and time of sending the message (in ISO 8601 format). If missing or null - message will be sent immediately
-
builder
public static MmsMessage.Builder builder()
-
withRecipients
public MmsMessage withRecipients(Recipients recipients)
The recipient number or multiple recipients numbers of single message. To set one recipient, please useRecipients.of(String)method simply passing to it astringwith his phone number. To set multiple recipients, please useRecipients.ofArrayOfStrings(List.of(String,...))method passing to itList<string>. Optionally you can also set custom id (user identifier) for each message - useRecipients.of(PhoneNumberWithCid)method passingPhoneNumberWithCidobject (in case of single recipient) orRecipients.ofArrayOfPhoneNumberWithCids(Recipients.of(PhoneNumberWithCid,...))method passing List<PhoneNumberWithCid> (in case of multiple recipients).
-
withSubject
public MmsMessage withSubject(java.lang.String subject)
MMS message subject
-
withSubject
public MmsMessage withSubject(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> subject)
MMS message subject
-
withMessage
public MmsMessage withMessage(java.lang.String message)
MMS message content
-
withMessage
public MmsMessage withMessage(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> message)
MMS message content
-
withAttachments
public MmsMessage withAttachments(Attachments attachments)
Attachments for the message. You can pass here images, audio and video files bodies. To set one attachment please useAttachments.of(String)method simply passing to it astringwith attachment body encoded bybase64. To set multiple attachments please useAttachments.of(List.of(String,...))method passing to itList<string>with attachments bodies encoded bybase64. Max 3 attachments per message.
-
withAttachments
public MmsMessage withAttachments(java.util.Optional<? extends Attachments> attachments)
Attachments for the message. You can pass here images, audio and video files bodies. To set one attachment please useAttachments.of(String)method simply passing to it astringwith attachment body encoded bybase64. To set multiple attachments please useAttachments.of(List.of(String,...))method passing to itList<string>with attachments bodies encoded bybase64. Max 3 attachments per message.
-
withDate
public MmsMessage withDate(java.time.OffsetDateTime date)
Scheduled future date and time of sending the message (in ISO 8601 format). If missing or null - message will be sent immediately
-
withDate
public MmsMessage withDate(org.openapitools.jackson.nullable.JsonNullable<java.time.OffsetDateTime> date)
Scheduled future date and time of sending the message (in ISO 8601 format). If missing or null - message will be sent immediately
-
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
-
-