Skip to content

Commit a1b9afd

Browse files
committed
chore: update copyright years and refactor code formatting across multiple files
- Updated copyright years from 2017-2024 to 2017-2025 in all relevant files. - Refactored import statements and code formatting for improved readability and consistency. - Ensured consistent logging practices and organization across the application.
1 parent 7ceb624 commit a1b9afd

30 files changed

+904
-817
lines changed

core/src/main/java/com/tcn/exile/config/Config.java

+429-404
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,35 @@
1-
/*
2-
* Copyright 2017-2024 original authors
3-
*
1+
/*
2+
* (C) 2017-2024 TCN Inc. All rights reserved.
3+
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
7-
*
7+
*
88
* https://www.apache.org/licenses/LICENSE-2.0
9-
*
9+
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,
1212
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
15+
*
1516
*/
16-
1717
package com.tcn.exile.gateclients;
1818

19-
public class UnconfiguredException extends Exception{
19+
public class UnconfiguredException extends Exception {
2020
public UnconfiguredException() {
2121
super();
2222
}
2323

2424
public UnconfiguredException(String message) {
2525
super(message);
2626
}
27+
2728
public UnconfiguredException(String message, Throwable cause) {
2829
super(message, cause);
2930
}
31+
3032
public UnconfiguredException(Throwable cause) {
3133
super(cause);
3234
}
33-
3435
}
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,23 @@
1-
/*
2-
* Copyright 2017-2024 original authors
3-
*
1+
/*
2+
* (C) 2017-2024 TCN Inc. All rights reserved.
3+
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
7-
*
7+
*
88
* https://www.apache.org/licenses/LICENSE-2.0
9-
*
9+
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,
1212
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
15+
*
1516
*/
1617
package com.tcn.exile.gateclients.v2;
1718

1819
public class BuildVersion {
1920
public static String getBuildVersion() {
2021
return BuildVersion.class.getPackage().getImplementationVersion();
2122
}
22-
}
23+
}
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
/*
2-
* Copyright 2017-2024 original authors
3-
*
1+
/*
2+
* (C) 2017-2024 TCN Inc. All rights reserved.
3+
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
7-
*
7+
*
88
* https://www.apache.org/licenses/LICENSE-2.0
9-
*
9+
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,
1212
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
15+
*
1516
*/
16-
1717
package com.tcn.exile.models;
1818

1919
import io.micronaut.core.annotation.Nullable;
@@ -22,10 +22,8 @@
2222

2323
@Serdeable
2424
public record Agent(
25-
@NotEmpty String userId,
26-
@Nullable String partnerAgentId,
27-
@NotEmpty String username,
28-
@Nullable String firstName,
29-
@Nullable String lastName) {
30-
31-
}
25+
@NotEmpty String userId,
26+
@Nullable String partnerAgentId,
27+
@NotEmpty String username,
28+
@Nullable String firstName,
29+
@Nullable String lastName) {}

core/src/main/java/com/tcn/exile/models/AgentState.java

+6-7
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,25 @@
1-
/*
2-
* Copyright 2017-2024 original authors
3-
*
1+
/*
2+
* (C) 2017-2024 TCN Inc. All rights reserved.
3+
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
7-
*
7+
*
88
* https://www.apache.org/licenses/LICENSE-2.0
9-
*
9+
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,
1212
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
15+
*
1516
*/
16-
1717
package com.tcn.exile.models;
1818

1919
import io.micronaut.serde.annotation.Serdeable;
2020

2121
@Serdeable
2222
public enum AgentState {
23-
2423
AGENT_STATE_UNAVALIABLE(0),
2524
AGENT_STATE_IDLE(1),
2625
AGENT_STATE_READY(2),
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
/*
2-
* Copyright 2017-2024 original authors
3-
*
1+
/*
2+
* (C) 2017-2024 TCN Inc. All rights reserved.
3+
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
7-
*
7+
*
88
* https://www.apache.org/licenses/LICENSE-2.0
9-
*
9+
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,
1212
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
15+
*
1516
*/
16-
1717
package com.tcn.exile.models;
1818

1919
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -22,8 +22,7 @@
2222

2323
@Serdeable
2424
public record AgentStatus(
25-
@JsonProperty("user_id") String userId,
26-
@JsonProperty("state") AgentState agentState,
27-
@JsonProperty("current_session_id") @Nullable Long currentSessionId,
28-
@JsonProperty("connected_party") @Nullable ConnectedParty connectedParty
29-
){}
25+
@JsonProperty("user_id") String userId,
26+
@JsonProperty("state") AgentState agentState,
27+
@JsonProperty("current_session_id") @Nullable Long currentSessionId,
28+
@JsonProperty("connected_party") @Nullable ConnectedParty connectedParty) {}
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
/*
2-
* Copyright 2017-2024 original authors
3-
*
1+
/*
2+
* (C) 2017-2024 TCN Inc. All rights reserved.
3+
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
7-
*
7+
*
88
* https://www.apache.org/licenses/LICENSE-2.0
9-
*
9+
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,
1212
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
15+
*
1516
*/
16-
1717
package com.tcn.exile.models;
1818

1919
import io.micronaut.serde.annotation.Serdeable;
@@ -26,6 +26,4 @@ public record AgentUpsertRequest(
2626
@Nullable String firstName,
2727
@Nullable String lastName,
2828
@Nullable String partnerAgentId,
29-
@Nullable String password
30-
) {
31-
}
29+
@Nullable String password) {}

core/src/main/java/com/tcn/exile/models/CallType.java

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
/*
2-
* Copyright 2017-2024 original authors
3-
*
1+
/*
2+
* (C) 2017-2024 TCN Inc. All rights reserved.
3+
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
7-
*
7+
*
88
* https://www.apache.org/licenses/LICENSE-2.0
9-
*
9+
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,
1212
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
15+
*
1516
*/
16-
1717
package com.tcn.exile.models;
1818

1919
import io.micronaut.serde.annotation.Serdeable;
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
/*
2-
* Copyright 2017-2024 original authors
3-
*
1+
/*
2+
* (C) 2017-2024 TCN Inc. All rights reserved.
3+
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
7-
*
7+
*
88
* https://www.apache.org/licenses/LICENSE-2.0
9-
*
9+
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,
1212
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
15+
*
1516
*/
16-
1717
package com.tcn.exile.models;
1818

1919
import io.micronaut.serde.annotation.Serdeable;
@@ -25,5 +25,4 @@ public record DialRequest(
2525
@NotEmpty String phoneNumber,
2626
@Nullable String callerId,
2727
@Nullable String recordId,
28-
@Nullable String poolId) {
29-
}
28+
@Nullable String poolId) {}

core/src/main/java/com/tcn/exile/models/GateClientState.java

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
/*
2-
* Copyright 2017-2024 original authors
3-
*
1+
/*
2+
* (C) 2017-2024 TCN Inc. All rights reserved.
3+
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
7-
*
7+
*
88
* https://www.apache.org/licenses/LICENSE-2.0
9-
*
9+
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,
1212
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
15+
*
1516
*/
16-
1717
package com.tcn.exile.models;
1818

1919
import io.micronaut.serde.annotation.Serdeable;
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,22 @@
1-
/*
2-
* Copyright 2017-2024 original authors
3-
*
1+
/*
2+
* (C) 2017-2024 TCN Inc. All rights reserved.
3+
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
7-
*
7+
*
88
* https://www.apache.org/licenses/LICENSE-2.0
9-
*
9+
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,
1212
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
15+
*
1516
*/
16-
1717
package com.tcn.exile.models;
1818

1919
import io.micronaut.serde.annotation.Serdeable;
2020

2121
@Serdeable
22-
public record GateClientStatus(GateClientState status) {
23-
}
24-
22+
public record GateClientStatus(GateClientState status) {}

core/src/main/java/com/tcn/exile/models/LookupType.java

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
/*
2-
* Copyright 2017-2024 original authors
3-
*
1+
/*
2+
* (C) 2017-2024 TCN Inc. All rights reserved.
3+
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
7-
*
7+
*
88
* https://www.apache.org/licenses/LICENSE-2.0
9-
*
9+
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,
1212
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
15+
*
1516
*/
16-
1717
package com.tcn.exile.models;
1818

1919
public enum LookupType {

0 commit comments

Comments
 (0)