OSType response: isuserdefined as string not bool #8127 (#8128)

Co-authored-by: Aakash Sinha <mailtomeaakash@gmail.com>
This commit is contained in:
Aakash Sinha 2023-10-25 14:32:57 +05:30 committed by GitHub
parent 39d6c20fb3
commit 8fe13f91a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -53,7 +53,7 @@ public class GuestOSResponse extends BaseResponse {
@SerializedName(ApiConstants.IS_USER_DEFINED)
@Param(description = "is the guest OS user defined")
private String isUserDefined;
private Boolean isUserDefined;
@SerializedName(ApiConstants.FOR_DISPLAY)
@Param(description = "is the guest OS visible for the users")
@ -99,11 +99,11 @@ public class GuestOSResponse extends BaseResponse {
this.description = description;
}
public String getIsUserDefined() {
public Boolean getIsUserDefined() {
return isUserDefined;
}
public void setIsUserDefined(String isUserDefined) {
public void setIsUserDefined(Boolean isUserDefined) {
this.isUserDefined = isUserDefined;
}

View File

@ -3730,7 +3730,7 @@ public class ApiResponseHelper implements ResponseGenerator {
response.setName(guestOS.getDisplayName());
response.setDescription(guestOS.getDisplayName());
response.setId(guestOS.getUuid());
response.setIsUserDefined(String.valueOf(guestOS.getIsUserDefined()));
response.setIsUserDefined(guestOS.getIsUserDefined());
response.setForDisplay(guestOS.getForDisplay());
GuestOSCategoryVO category = ApiDBUtils.findGuestOsCategoryById(guestOS.getCategoryId());
if (category != null) {