Skip to content

Commit

Permalink
Vonage#443 AppEndpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Jasper de Vries committed Apr 4, 2023
1 parent 54f303e commit b008bdd
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {

group = "com.vonage"
archivesBaseName = "client"
version = "7.2.0"
version = "7.2.1"
sourceCompatibility = "1.8"
targetCompatibility = "1.8"

Expand Down
48 changes: 48 additions & 0 deletions src/main/java/com/vonage/client/voice/AppEndpoint.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
/*
* Copyright 2023 Vonage
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.vonage.client.voice;

import com.fasterxml.jackson.annotation.JsonInclude;

/**
* TODO.
*
* @since 7.2.1
*/
@JsonInclude(value = JsonInclude.Include.NON_NULL)
public class AppEndpoint implements Endpoint {
private static final String TYPE = "app";

private String user;

public AppEndpoint() {
// NOOP
}

@Override
public String toLog() {
return "user=" + user;
}

public String getType() {
return TYPE;
}

public String getUser() {
return user;
}

}
3 changes: 2 additions & 1 deletion src/main/java/com/vonage/client/voice/Endpoint.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
@JsonSubTypes({
@JsonSubTypes.Type(value = PhoneEndpoint.class, name = "phone"),
@JsonSubTypes.Type(value = SipEndpoint.class, name = "sip"),
@JsonSubTypes.Type(value = WebSocketEndpoint.class, name = "websocket")
@JsonSubTypes.Type(value = WebSocketEndpoint.class, name = "websocket"),
@JsonSubTypes.Type(value = AppEndpoint.class, name = "app")
})
public interface Endpoint {
String getType();
Expand Down

0 comments on commit b008bdd

Please sign in to comment.