-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adjust the gateway code to align the reconstruct in Java sdk.
- Loading branch information
Showing
5 changed files
with
179 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
src/main/java/space/ao/services/support/platform/model/ObtainBoxRegKeyRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
package space.ao.services.support.platform.model; | ||
|
||
import io.quarkus.runtime.annotations.RegisterForReflection; | ||
|
||
import java.util.List; | ||
@RegisterForReflection | ||
public class ObtainBoxRegKeyRequest { | ||
|
||
// Field for Box UUID | ||
private String boxUUID; | ||
|
||
// Field for Service IDs | ||
private List<String> serviceIds; | ||
|
||
// Field for Sign | ||
private String sign; | ||
|
||
|
||
public String getBoxUUID() { | ||
return this.boxUUID; | ||
} | ||
|
||
public void setBoxUUID(String boxUUID) { | ||
if (boxUUID == null || boxUUID.trim().isEmpty()) { | ||
throw new IllegalArgumentException("Box UUID cannot be null or empty."); | ||
} | ||
this.boxUUID = boxUUID; | ||
|
||
} | ||
|
||
public List<String> getServiceIds() { | ||
return this.serviceIds; | ||
} | ||
|
||
public void setServiceIds(List<String> serviceIds) { | ||
if (serviceIds == null || serviceIds.isEmpty()) { | ||
throw new IllegalArgumentException("Service IDs cannot be null or empty."); | ||
} | ||
this.serviceIds = serviceIds; | ||
|
||
} | ||
|
||
public String getSign() { | ||
return this.sign; | ||
} | ||
|
||
public void setSign(String sign) { | ||
this.sign = sign; | ||
} | ||
} | ||
|
32 changes: 32 additions & 0 deletions
32
src/main/java/space/ao/services/support/platform/model/RegisterClientRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package space.ao.services.support.platform.model; | ||
|
||
import io.quarkus.runtime.annotations.RegisterForReflection; | ||
|
||
@RegisterForReflection | ||
public class RegisterClientRequest { | ||
|
||
private String clientUUID; | ||
private String clientType; | ||
|
||
public String getClientUUID() { | ||
return this.clientUUID; | ||
} | ||
|
||
public void setClientUUID(String clientUUID) { | ||
if (clientUUID == null || clientUUID.trim().isEmpty()) { | ||
throw new IllegalArgumentException("Client UUID cannot be null or empty."); | ||
} | ||
this.clientUUID = clientUUID; | ||
} | ||
|
||
public String getClientType() { | ||
return this.clientType; | ||
} | ||
|
||
public void setClientType(String clientType) { | ||
if (clientType == null || clientType.trim().isEmpty()) { | ||
throw new IllegalArgumentException("Client Type cannot be null or empty."); | ||
} | ||
this.clientType = clientType; | ||
} | ||
} |
62 changes: 62 additions & 0 deletions
62
src/main/java/space/ao/services/support/platform/model/RegisterUserRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
package space.ao.services.support.platform.model; | ||
|
||
import io.quarkus.runtime.annotations.RegisterForReflection; | ||
|
||
@RegisterForReflection | ||
public class RegisterUserRequest { | ||
private String boxUUID; | ||
private String userId; | ||
private String subdomain; | ||
private String userType; | ||
private String clientUUID; | ||
|
||
|
||
public String getBoxUUID() { | ||
return this.boxUUID; | ||
} | ||
|
||
public void setBoxUUID(String boxUUID) { | ||
if (boxUUID == null || boxUUID.trim().isEmpty()) { | ||
throw new IllegalArgumentException("Box UUID cannot be null or empty."); | ||
} | ||
this.boxUUID = boxUUID; | ||
|
||
} | ||
|
||
public String getUserId() { | ||
return this.userId; | ||
} | ||
|
||
public void setUserId(String userId) { | ||
if (userId == null || userId.trim().isEmpty()) { | ||
throw new IllegalArgumentException("User ID cannot be null or empty."); | ||
} | ||
this.userId = userId; | ||
|
||
} | ||
|
||
public String getSubdomain() { | ||
return this.subdomain; | ||
} | ||
|
||
public void setSubdomain(String subdomain) { | ||
this.subdomain = subdomain; | ||
} | ||
|
||
public String getUserType() { | ||
return this.userType; | ||
} | ||
|
||
public void setUserType(String userType) { | ||
this.userType = userType; | ||
} | ||
|
||
public String getClientUUID() { | ||
return this.clientUUID; | ||
} | ||
|
||
public void setClientUUID(String clientUUID) { | ||
this.clientUUID = clientUUID; | ||
} | ||
|
||
} |