Skip to content

Add option to set validity #8

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 3 commits into from
Sep 11, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions src/main/java/com/cmtelecom/text/sdk/models/Message.java
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,31 @@ public class Message {

@SerializedName("richContent")
public com.cmtelecom.text.sdk.models.multichannel.RichContent RichContent;

/// <summary>
/// Optional: For each message you send, you can set a validity.
/// Specify a time at which a delayed message can be considered irrelevant, you can supply an absolute date & time
/// or a relative offset. A message is considered failed if it was not successfully delivered before that time.
/// And via a Status Report we inform you this was the case.
/// For more information on status reports, see:
/// https://docs.cmtelecom.com/business-messaging/v1.0#/status_report_webhook
/// You can supply the time zone for the validity period using either of the following formats:
///
/// Absolute date and time:
///
/// 2017-04-20 11:50:05 GMT
/// 2017-04-20 11:50:05+8
/// 2017-04-20 11:55:05-07:00
/// If no time zone was specified, CE(S)T will be used. (CM local time)
///
/// Relative offset in hour(H) or minute(M)
///
/// 2h
/// 30m
/// You can set the validity in either hours or minutes. A combination of both is not supported.
/// </summary>
@SerializedName("validity")
public String Validity;


public Message(Body body, String from, List<Recipient> recipientList) {
Expand Down
2 changes: 1 addition & 1 deletion target/maven-archiver/pom.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#Generated by Maven
#Thu Mar 26 09:32:54 CET 2020
#Fri Sep 11 15:02:38 CEST 2020
groupId=com.github.cmdotcom
artifactId=text-sdk-java
version=1.0-SNAPSHOT