Skip to content

Commit

Permalink
Version 1.0.0 released
Browse files Browse the repository at this point in the history
  • Loading branch information
nosovm committed Oct 6, 2020
1 parent 75698cb commit 561915e
Show file tree
Hide file tree
Showing 456 changed files with 25,423 additions and 2,453 deletions.
5 changes: 4 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.voximplant</groupId>
<artifactId>apiclient</artifactId>
<version>0.9.0</version>
<version>1.0.0</version>
<packaging>jar</packaging>

<name>voximplant-apiclient</name>
Expand Down Expand Up @@ -98,6 +98,9 @@
<goals>
<goal>jar</goal>
</goals>
<configuration>
<failOnError>false</failOnError>
</configuration>
</execution>
</executions>
</plugin>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
package com.voximplant.apiclient.request;

import java.util.Arrays;
import java.util.Date;
import java.util.Map;
import java.math.BigDecimal;
import com.voximplant.apiclient.util.MultiArgument;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.voximplant.apiclient.util.StringHelper;
import com.voximplant.apiclient.util.Alignable;
import com.voximplant.apiclient.util.DateSerializer;
import com.voximplant.apiclient.util.RequestField;
import com.voximplant.apiclient.util.SerializeUsing;
import com.voximplant.apiclient.util.TimestampSerializer;

public class A2PGetSmsHistoryRequest {
public class A2PGetSmsHistoryRequest implements Alignable {
private String sourceNumber;

@RequestField(name="source_number")
Expand Down Expand Up @@ -62,8 +65,8 @@ public A2PGetSmsHistoryRequest setDestinationNumber(String d) {
* Maximum number of resulting rows fetched. Must be not more than 1000.
* If left blank, then the default value of 1000 will be used.
*/
public long getCount() {
return this.count.longValue();
public Long getCount() {
return this.count;
}

public boolean hasCount() {
Expand All @@ -85,8 +88,8 @@ public A2PGetSmsHistoryRequest setCount(long d) {
/**
* The first <b>N</b> records will be skipped in the output.
*/
public long getOffset() {
return this.offset.longValue();
public Long getOffset() {
return this.offset;
}

public boolean hasOffset() {
Expand Down Expand Up @@ -180,8 +183,8 @@ public A2PGetSmsHistoryRequest setOutput(String d) {
* The delivery status ID: QUEUED - 1, DISPATCHED - 2, ABORTED - 3,
* REJECTED - 4, DELIVERED - 5, FAILED - 6, EXPIRED - 7, UNKNOWN - 8.
*/
public long getDeliveryStatus() {
return this.deliveryStatus.longValue();
public Long getDeliveryStatus() {
return this.deliveryStatus;
}

public boolean hasDeliveryStatus() {
Expand All @@ -197,4 +200,83 @@ public A2PGetSmsHistoryRequest setDeliveryStatus(long d) {
return this;
}

}
public String toString(int alignment) {
char[] preAligned = new char[alignment - 1];
char[] aligned = new char[alignment];
Arrays.fill(preAligned, '\t');
Arrays.fill(aligned, '\t');
StringBuilder sb = new StringBuilder()
.append(preAligned)
.append('{')
.append(System.lineSeparator());
if (sourceNumber != null) {
sb.append(aligned)
.append("\"sourceNumber\": \"")
.append(sourceNumber)
.append('"')
.append(',')
.append(System.lineSeparator());
}
if (destinationNumber != null) {
sb.append(aligned)
.append("\"destinationNumber\": \"")
.append(destinationNumber)
.append('"')
.append(',')
.append(System.lineSeparator());
}
if (count != null) {
sb.append(aligned)
.append("\"count\": \"")
.append(count)
.append('"')
.append(',')
.append(System.lineSeparator());
}
if (offset != null) {
sb.append(aligned)
.append("\"offset\": \"")
.append(offset)
.append('"')
.append(',')
.append(System.lineSeparator());
}
if (fromDate != null) {
sb.append(aligned)
.append("\"fromDate\": \"")
.append(fromDate)
.append('"')
.append(',')
.append(System.lineSeparator());
}
if (toDate != null) {
sb.append(aligned)
.append("\"toDate\": \"")
.append(toDate)
.append('"')
.append(',')
.append(System.lineSeparator());
}
if (output != null) {
sb.append(aligned)
.append("\"output\": \"")
.append(output)
.append('"')
.append(',')
.append(System.lineSeparator());
}
if (deliveryStatus != null) {
sb.append(aligned)
.append("\"deliveryStatus\": \"")
.append(deliveryStatus)
.append('"')
.append(',')
.append(System.lineSeparator());
}
return sb.append(preAligned).append('}').append(',').toString();
}

@Override
public String toString() {
return toString(1);
}}
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
package com.voximplant.apiclient.request;

import java.util.Arrays;
import java.util.Date;
import java.util.Map;
import java.math.BigDecimal;
import com.voximplant.apiclient.util.MultiArgument;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.voximplant.apiclient.util.StringHelper;
import com.voximplant.apiclient.util.Alignable;
import com.voximplant.apiclient.util.DateSerializer;
import com.voximplant.apiclient.util.RequestField;
import com.voximplant.apiclient.util.SerializeUsing;
import com.voximplant.apiclient.util.TimestampSerializer;

public class A2PSendSmsRequest {
public class A2PSendSmsRequest implements Alignable {
private String srcNumber;

@RequestField(name="src_number")
Expand Down Expand Up @@ -77,4 +80,43 @@ public A2PSendSmsRequest setText(String d) {
return this;
}

}
public String toString(int alignment) {
char[] preAligned = new char[alignment - 1];
char[] aligned = new char[alignment];
Arrays.fill(preAligned, '\t');
Arrays.fill(aligned, '\t');
StringBuilder sb = new StringBuilder()
.append(preAligned)
.append('{')
.append(System.lineSeparator());
if (srcNumber != null) {
sb.append(aligned)
.append("\"srcNumber\": \"")
.append(srcNumber)
.append('"')
.append(',')
.append(System.lineSeparator());
}
if (dstNumbers != null) {
sb.append(aligned)
.append("\"dstNumbers\": \"")
.append(dstNumbers)
.append('"')
.append(',')
.append(System.lineSeparator());
}
if (text != null) {
sb.append(aligned)
.append("\"text\": \"")
.append(text)
.append('"')
.append(',')
.append(System.lineSeparator());
}
return sb.append(preAligned).append('}').append(',').toString();
}

@Override
public String toString() {
return toString(1);
}}
Original file line number Diff line number Diff line change
@@ -1,24 +1,27 @@
package com.voximplant.apiclient.request;

import java.util.Arrays;
import java.util.Date;
import java.util.Map;
import java.math.BigDecimal;
import com.voximplant.apiclient.util.MultiArgument;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.voximplant.apiclient.util.StringHelper;
import com.voximplant.apiclient.util.Alignable;
import com.voximplant.apiclient.util.DateSerializer;
import com.voximplant.apiclient.util.RequestField;
import com.voximplant.apiclient.util.SerializeUsing;
import com.voximplant.apiclient.util.TimestampSerializer;

public class ActivateCallerIDRequest {
public class ActivateCallerIDRequest implements Alignable {
private Long calleridId;

@RequestField(name="callerid_id")
/**
* The id of the callerID object.
*/
public long getCalleridId() {
return this.calleridId.longValue();
public Long getCalleridId() {
return this.calleridId;
}

public boolean hasCalleridId() {
Expand Down Expand Up @@ -77,4 +80,43 @@ public ActivateCallerIDRequest setVerificationCode(String d) {
return this;
}

}
public String toString(int alignment) {
char[] preAligned = new char[alignment - 1];
char[] aligned = new char[alignment];
Arrays.fill(preAligned, '\t');
Arrays.fill(aligned, '\t');
StringBuilder sb = new StringBuilder()
.append(preAligned)
.append('{')
.append(System.lineSeparator());
if (calleridId != null) {
sb.append(aligned)
.append("\"calleridId\": \"")
.append(calleridId)
.append('"')
.append(',')
.append(System.lineSeparator());
}
if (calleridNumber != null) {
sb.append(aligned)
.append("\"calleridNumber\": \"")
.append(calleridNumber)
.append('"')
.append(',')
.append(System.lineSeparator());
}
if (verificationCode != null) {
sb.append(aligned)
.append("\"verificationCode\": \"")
.append(verificationCode)
.append('"')
.append(',')
.append(System.lineSeparator());
}
return sb.append(preAligned).append('}').append(',').toString();
}

@Override
public String toString() {
return toString(1);
}}
Loading

0 comments on commit 561915e

Please sign in to comment.