Skip to content

Commit

Permalink
Merge pull request #12 from 2060-io/feat/add-call-offer-command
Browse files Browse the repository at this point in the history
  • Loading branch information
genaris authored Sep 27, 2024
2 parents ce1205d + bec4c1d commit 471ed0f
Show file tree
Hide file tree
Showing 7 changed files with 93 additions and 6 deletions.
8 changes: 7 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>io.2060</groupId>
<artifactId>service-agent-java-client</artifactId>
<version>2.0.7</version>
<version>2.0.8</version>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>17</maven.compiler.source>
Expand Down Expand Up @@ -48,6 +48,12 @@
<version>3.9.2</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.34</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.graalvm.sdk</groupId>
<artifactId>graal-sdk</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;

import io.twentysixty.sa.client.model.message.calls.CallAcceptRequestMessage;
import io.twentysixty.sa.client.model.message.calls.CallEndRequestMessage;
import io.twentysixty.sa.client.model.message.calls.CallOfferRequestMessage;
import io.twentysixty.sa.client.model.message.calls.CallRejectRequestMessage;
import io.twentysixty.sa.client.util.InstantDeserializer;
import io.twentysixty.sa.client.util.InstantSerializer;

Expand All @@ -37,7 +41,11 @@
@Type(value = TextMessage.class, name ="text"),
@Type(value = InvitationMessage.class, name ="invitation"),
@Type(value = ProfileMessage.class, name ="profile"),
@Type(value = TerminateConnectionMessage.class, name ="terminate-connection")
@Type(value = TerminateConnectionMessage.class, name ="terminate-connection"),
@Type(value = CallAcceptRequestMessage.class, name ="call-accept"),
@Type(value = CallEndRequestMessage.class, name ="call-end"),
@Type(value = CallOfferRequestMessage.class, name ="call-offer"),
@Type(value = CallRejectRequestMessage.class, name ="call-reject")
})
public abstract class BaseMessage implements Serializable {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
package io.twentysixty.sa.client.model.message;

import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;

@JsonInclude(Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown = true)
@Deprecated
public class TerminateConnectionMessage extends BaseMessage implements Serializable {
public class TerminateConnectionMessage extends BaseMessage {

private static final long serialVersionUID = -2840211856886973672L;

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package io.twentysixty.sa.client.model.message.calls;

import java.util.Map;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;

import io.twentysixty.sa.client.model.message.BaseMessage;
import lombok.Getter;
import lombok.Setter;

@JsonInclude(Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown = true)
@Setter
@Getter
public class CallAcceptRequestMessage extends BaseMessage {

private static final long serialVersionUID = -2840211856886973682L;

private Map<String, Object> parameters;

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package io.twentysixty.sa.client.model.message.calls;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;

import io.twentysixty.sa.client.model.message.BaseMessage;

@JsonInclude(Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown = true)
public class CallEndRequestMessage extends BaseMessage {

private static final long serialVersionUID = -2840211856886973682L;

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package io.twentysixty.sa.client.model.message.calls;

import java.util.Map;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;

import io.twentysixty.sa.client.model.message.BaseMessage;
import lombok.Getter;
import lombok.Setter;

@JsonInclude(Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown = true)
@Setter
@Getter
public class CallOfferRequestMessage extends BaseMessage {

private static final long serialVersionUID = -2840211856886973682L;

private Map<String, Object> parameters;

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package io.twentysixty.sa.client.model.message.calls;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;

import io.twentysixty.sa.client.model.message.BaseMessage;

@JsonInclude(Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown = true)
public class CallRejectRequestMessage extends BaseMessage {

private static final long serialVersionUID = -2840211856886973682L;

}

0 comments on commit 471ed0f

Please sign in to comment.