Class Message
- java.lang.Object
-
- pl.gsmservice.gateway.models.components.Message
-
public class Message extends java.lang.ObjectMessageAn object defining the properties of a single message
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMessage.Builder
-
Constructor Summary
Constructors Constructor Description Message()Message(org.openapitools.jackson.nullable.JsonNullable<java.lang.Long> id, org.openapitools.jackson.nullable.JsonNullable<java.lang.String> cid, java.util.Optional<? extends MessageType> type, java.util.Optional<java.lang.String> recipient, org.openapitools.jackson.nullable.JsonNullable<java.lang.String> sender, org.openapitools.jackson.nullable.JsonNullable<java.lang.Long> parts, org.openapitools.jackson.nullable.JsonNullable<java.time.OffsetDateTime> sentDate, org.openapitools.jackson.nullable.JsonNullable<java.time.OffsetDateTime> statusDate, java.util.Optional<java.lang.String> statusCode, java.util.Optional<java.lang.String> statusDescription, java.util.Optional<java.lang.Boolean> unicode, java.util.Optional<java.lang.Boolean> flash, java.util.Optional<java.lang.Float> price)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Message.Builderbuilder()org.openapitools.jackson.nullable.JsonNullable<java.lang.String>cid()Custom message ID assigned by the Userbooleanequals(java.lang.Object o)java.util.Optional<java.lang.Boolean>flash()Was the message sent with class 0 (FLASH)?inthashCode()org.openapitools.jackson.nullable.JsonNullable<java.lang.Long>id()Unique message identifierorg.openapitools.jackson.nullable.JsonNullable<java.lang.Long>parts()The count of parts that message consists ofjava.util.Optional<java.lang.Float>price()The price of message (in PLN)java.util.Optional<java.lang.String>recipient()A telephone number in international format (with a plus sign and the country code at the beginning, e.g.org.openapitools.jackson.nullable.JsonNullable<java.lang.String>sender()Message sender nameorg.openapitools.jackson.nullable.JsonNullable<java.time.OffsetDateTime>sentDate()Sending date and time (in ISO 8601 format)java.util.Optional<java.lang.String>statusCode()Message status codeorg.openapitools.jackson.nullable.JsonNullable<java.time.OffsetDateTime>statusDate()Date and time of last status change (in ISO 8601 format)java.util.Optional<java.lang.String>statusDescription()Human redable description of message statusjava.lang.StringtoString()java.util.Optional<MessageType>type()Message type (SmsType.SmsPro -> SMS PRO, SmsType.SmsEco -> SMS ECO, SmsType.SmsTwoWay ->SMS 2WAY, SmsType.Mms -> MMS)java.util.Optional<java.lang.Boolean>unicode()Did the message contain special characters, e.g.MessagewithCid(java.lang.String cid)Custom message ID assigned by the UserMessagewithCid(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> cid)Custom message ID assigned by the UserMessagewithFlash(boolean flash)Was the message sent with class 0 (FLASH)?MessagewithFlash(java.util.Optional<java.lang.Boolean> flash)Was the message sent with class 0 (FLASH)?MessagewithId(long id)Unique message identifierMessagewithId(org.openapitools.jackson.nullable.JsonNullable<java.lang.Long> id)Unique message identifierMessagewithParts(long parts)The count of parts that message consists ofMessagewithParts(org.openapitools.jackson.nullable.JsonNullable<java.lang.Long> parts)The count of parts that message consists ofMessagewithPrice(float price)The price of message (in PLN)MessagewithPrice(java.util.Optional<java.lang.Float> price)The price of message (in PLN)MessagewithRecipient(java.lang.String recipient)A telephone number in international format (with a plus sign and the country code at the beginning, e.g.MessagewithRecipient(java.util.Optional<java.lang.String> recipient)A telephone number in international format (with a plus sign and the country code at the beginning, e.g.MessagewithSender(java.lang.String sender)Message sender nameMessagewithSender(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> sender)Message sender nameMessagewithSentDate(java.time.OffsetDateTime sentDate)Sending date and time (in ISO 8601 format)MessagewithSentDate(org.openapitools.jackson.nullable.JsonNullable<java.time.OffsetDateTime> sentDate)Sending date and time (in ISO 8601 format)MessagewithStatusCode(java.lang.String statusCode)Message status codeMessagewithStatusCode(java.util.Optional<java.lang.String> statusCode)Message status codeMessagewithStatusDate(java.time.OffsetDateTime statusDate)Date and time of last status change (in ISO 8601 format)MessagewithStatusDate(org.openapitools.jackson.nullable.JsonNullable<java.time.OffsetDateTime> statusDate)Date and time of last status change (in ISO 8601 format)MessagewithStatusDescription(java.lang.String statusDescription)Human redable description of message statusMessagewithStatusDescription(java.util.Optional<java.lang.String> statusDescription)Human redable description of message statusMessagewithType(java.util.Optional<? extends MessageType> type)Message type (SmsType.SmsPro -> SMS PRO, SmsType.SmsEco -> SMS ECO, SmsType.SmsTwoWay ->SMS 2WAY, SmsType.Mms -> MMS)MessagewithType(MessageType type)Message type (SmsType.SmsPro -> SMS PRO, SmsType.SmsEco -> SMS ECO, SmsType.SmsTwoWay ->SMS 2WAY, SmsType.Mms -> MMS)MessagewithUnicode(boolean unicode)Did the message contain special characters, e.g.MessagewithUnicode(java.util.Optional<java.lang.Boolean> unicode)Did the message contain special characters, e.g.
-
-
-
Constructor Detail
-
Message
public Message(org.openapitools.jackson.nullable.JsonNullable<java.lang.Long> id, org.openapitools.jackson.nullable.JsonNullable<java.lang.String> cid, java.util.Optional<? extends MessageType> type, java.util.Optional<java.lang.String> recipient, org.openapitools.jackson.nullable.JsonNullable<java.lang.String> sender, org.openapitools.jackson.nullable.JsonNullable<java.lang.Long> parts, org.openapitools.jackson.nullable.JsonNullable<java.time.OffsetDateTime> sentDate, org.openapitools.jackson.nullable.JsonNullable<java.time.OffsetDateTime> statusDate, java.util.Optional<java.lang.String> statusCode, java.util.Optional<java.lang.String> statusDescription, java.util.Optional<java.lang.Boolean> unicode, java.util.Optional<java.lang.Boolean> flash, java.util.Optional<java.lang.Float> price)
-
Message
public Message()
-
-
Method Detail
-
id
public org.openapitools.jackson.nullable.JsonNullable<java.lang.Long> id()
Unique message identifier
-
cid
public org.openapitools.jackson.nullable.JsonNullable<java.lang.String> cid()
Custom message ID assigned by the User
-
type
public java.util.Optional<MessageType> type()
Message type (SmsType.SmsPro -> SMS PRO, SmsType.SmsEco -> SMS ECO, SmsType.SmsTwoWay ->SMS 2WAY, SmsType.Mms -> MMS)
-
recipient
public java.util.Optional<java.lang.String> recipient()
A telephone number in international format (with a plus sign and the country code at the beginning, e.g. +48 for Poland)
-
sender
public org.openapitools.jackson.nullable.JsonNullable<java.lang.String> sender()
Message sender name
-
parts
public org.openapitools.jackson.nullable.JsonNullable<java.lang.Long> parts()
The count of parts that message consists of
-
sentDate
public org.openapitools.jackson.nullable.JsonNullable<java.time.OffsetDateTime> sentDate()
Sending date and time (in ISO 8601 format)
-
statusDate
public org.openapitools.jackson.nullable.JsonNullable<java.time.OffsetDateTime> statusDate()
Date and time of last status change (in ISO 8601 format)
-
statusCode
public java.util.Optional<java.lang.String> statusCode()
Message status code
-
statusDescription
public java.util.Optional<java.lang.String> statusDescription()
Human redable description of message status
-
unicode
public java.util.Optional<java.lang.Boolean> unicode()
Did the message contain special characters, e.g. Polish diacritics?
-
flash
public java.util.Optional<java.lang.Boolean> flash()
Was the message sent with class 0 (FLASH)?
-
price
public java.util.Optional<java.lang.Float> price()
The price of message (in PLN)
-
builder
public static Message.Builder builder()
-
withId
public Message withId(long id)
Unique message identifier
-
withId
public Message withId(org.openapitools.jackson.nullable.JsonNullable<java.lang.Long> id)
Unique message identifier
-
withCid
public Message withCid(java.lang.String cid)
Custom message ID assigned by the User
-
withCid
public Message withCid(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> cid)
Custom message ID assigned by the User
-
withType
public Message withType(MessageType type)
Message type (SmsType.SmsPro -> SMS PRO, SmsType.SmsEco -> SMS ECO, SmsType.SmsTwoWay ->SMS 2WAY, SmsType.Mms -> MMS)
-
withType
public Message withType(java.util.Optional<? extends MessageType> type)
Message type (SmsType.SmsPro -> SMS PRO, SmsType.SmsEco -> SMS ECO, SmsType.SmsTwoWay ->SMS 2WAY, SmsType.Mms -> MMS)
-
withRecipient
public Message withRecipient(java.lang.String recipient)
A telephone number in international format (with a plus sign and the country code at the beginning, e.g. +48 for Poland)
-
withRecipient
public Message withRecipient(java.util.Optional<java.lang.String> recipient)
A telephone number in international format (with a plus sign and the country code at the beginning, e.g. +48 for Poland)
-
withSender
public Message withSender(java.lang.String sender)
Message sender name
-
withSender
public Message withSender(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> sender)
Message sender name
-
withParts
public Message withParts(long parts)
The count of parts that message consists of
-
withParts
public Message withParts(org.openapitools.jackson.nullable.JsonNullable<java.lang.Long> parts)
The count of parts that message consists of
-
withSentDate
public Message withSentDate(java.time.OffsetDateTime sentDate)
Sending date and time (in ISO 8601 format)
-
withSentDate
public Message withSentDate(org.openapitools.jackson.nullable.JsonNullable<java.time.OffsetDateTime> sentDate)
Sending date and time (in ISO 8601 format)
-
withStatusDate
public Message withStatusDate(java.time.OffsetDateTime statusDate)
Date and time of last status change (in ISO 8601 format)
-
withStatusDate
public Message withStatusDate(org.openapitools.jackson.nullable.JsonNullable<java.time.OffsetDateTime> statusDate)
Date and time of last status change (in ISO 8601 format)
-
withStatusCode
public Message withStatusCode(java.lang.String statusCode)
Message status code
-
withStatusCode
public Message withStatusCode(java.util.Optional<java.lang.String> statusCode)
Message status code
-
withStatusDescription
public Message withStatusDescription(java.lang.String statusDescription)
Human redable description of message status
-
withStatusDescription
public Message withStatusDescription(java.util.Optional<java.lang.String> statusDescription)
Human redable description of message status
-
withUnicode
public Message withUnicode(boolean unicode)
Did the message contain special characters, e.g. Polish diacritics?
-
withUnicode
public Message withUnicode(java.util.Optional<java.lang.Boolean> unicode)
Did the message contain special characters, e.g. Polish diacritics?
-
withFlash
public Message withFlash(boolean flash)
Was the message sent with class 0 (FLASH)?
-
withFlash
public Message withFlash(java.util.Optional<java.lang.Boolean> flash)
Was the message sent with class 0 (FLASH)?
-
withPrice
public Message withPrice(float price)
The price of message (in PLN)
-
withPrice
public Message withPrice(java.util.Optional<java.lang.Float> price)
The price of message (in PLN)
-
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
-
-