From b62878b7b5c0bf1d9297d573d3bd483a250a0816 Mon Sep 17 00:00:00 2001 From: Soufyan Bargach Date: Fri, 11 Sep 2020 15:08:58 +0200 Subject: [PATCH 1/3] Add option to set validity --- .../cmtelecom/text/sdk/models/Message.java | 25 +++++++++++++++++++ target/maven-archiver/pom.properties | 2 +- 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/cmtelecom/text/sdk/models/Message.java b/src/main/java/com/cmtelecom/text/sdk/models/Message.java index c8bbe59..c52172b 100644 --- a/src/main/java/com/cmtelecom/text/sdk/models/Message.java +++ b/src/main/java/com/cmtelecom/text/sdk/models/Message.java @@ -114,6 +114,31 @@ public class Message { @SerializedName("richContent") public com.cmtelecom.text.sdk.models.multichannel.RichContent RichContent; + + /// + /// 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. + /// + @SerializedName("validity") + public String Validity; public Message(Body body, String from, List recipientList) { diff --git a/target/maven-archiver/pom.properties b/target/maven-archiver/pom.properties index bbe6dab..b9442ec 100644 --- a/target/maven-archiver/pom.properties +++ b/target/maven-archiver/pom.properties @@ -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 From 2fe83004e8e8dd2986958f15062268589c2eeaee Mon Sep 17 00:00:00 2001 From: Soufyan Bargach Date: Fri, 11 Sep 2020 15:29:47 +0200 Subject: [PATCH 2/3] fix indentation --- .../cmtelecom/text/sdk/models/Message.java | 42 +++++++++---------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/src/main/java/com/cmtelecom/text/sdk/models/Message.java b/src/main/java/com/cmtelecom/text/sdk/models/Message.java index c52172b..f281b2e 100644 --- a/src/main/java/com/cmtelecom/text/sdk/models/Message.java +++ b/src/main/java/com/cmtelecom/text/sdk/models/Message.java @@ -116,27 +116,27 @@ public class Message { public com.cmtelecom.text.sdk.models.multichannel.RichContent RichContent; /// - /// 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. - /// + /// 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. + /// @SerializedName("validity") public String Validity; From bc8ad0ed29c3b018b62b0d7a3b036a8eb54091d1 Mon Sep 17 00:00:00 2001 From: Derk-Jan Hartman Date: Fri, 11 Sep 2020 15:38:03 +0200 Subject: [PATCH 3/3] more indentation --- src/main/java/com/cmtelecom/text/sdk/models/Message.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/cmtelecom/text/sdk/models/Message.java b/src/main/java/com/cmtelecom/text/sdk/models/Message.java index f281b2e..2ca8f7f 100644 --- a/src/main/java/com/cmtelecom/text/sdk/models/Message.java +++ b/src/main/java/com/cmtelecom/text/sdk/models/Message.java @@ -137,8 +137,8 @@ public class Message { /// 30m /// You can set the validity in either hours or minutes. A combination of both is not supported. /// - @SerializedName("validity") - public String Validity; + @SerializedName("validity") + public String Validity; public Message(Body body, String from, List recipientList) {