Skip to content

Commit

Permalink
Authentication template add SupportApps
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Jun 21, 2024
1 parent 1ff4192 commit 2861e0b
Show file tree
Hide file tree
Showing 6 changed files with 120 additions and 1 deletion.
3 changes: 3 additions & 0 deletions aliyun-java-sdk-cams/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2024-06-21 Version: 1.0.13
- Authentication template add SupportApps

2024-05-30 Version: 1.0.12
- Generated 2020-06-06 for `cams`.

Expand Down
2 changes: 1 addition & 1 deletion aliyun-java-sdk-cams/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>com.aliyun</groupId>
<artifactId>aliyun-java-sdk-cams</artifactId>
<packaging>jar</packaging>
<version>1.0.12</version>
<version>1.0.13</version>
<name>aliyun-java-sdk-cams</name>
<url>http://www.aliyun.com</url>
<description>Aliyun Open API SDK for Java
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,9 @@ public static class ButtonsItem {
@SerializedName("NavigateScreen")
private String navigateScreen;

@SerializedName("SupportedApps")
private List<SupportedAppsItem> supportedApps;

public String getType() {
return this.type;
}
Expand Down Expand Up @@ -482,6 +485,39 @@ public String getNavigateScreen() {
public void setNavigateScreen(String navigateScreen) {
this.navigateScreen = navigateScreen;
}

public List<SupportedAppsItem> getSupportedApps() {
return this.supportedApps;
}

public void setSupportedApps(List<SupportedAppsItem> supportedApps) {
this.supportedApps = supportedApps;
}

public static class SupportedAppsItem {

@SerializedName("SignatureHash")
private String signatureHash;

@SerializedName("PackageName")
private String packageName;

public String getSignatureHash() {
return this.signatureHash;
}

public void setSignatureHash(String signatureHash) {
this.signatureHash = signatureHash;
}

public String getPackageName() {
return this.packageName;
}

public void setPackageName(String packageName) {
this.packageName = packageName;
}
}
}

public static class CardsItem {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,8 @@ public static class Button {

private String navigateScreen;

private List<SupportedAppsItem> supportedApps;

private ExtendAttrs extendAttrs;

public String getType() {
Expand Down Expand Up @@ -514,6 +516,14 @@ public void setNavigateScreen(String navigateScreen) {
this.navigateScreen = navigateScreen;
}

public List<SupportedAppsItem> getSupportedApps() {
return this.supportedApps;
}

public void setSupportedApps(List<SupportedAppsItem> supportedApps) {
this.supportedApps = supportedApps;
}

public ExtendAttrs getExtendAttrs() {
return this.extendAttrs;
}
Expand All @@ -522,6 +532,29 @@ public void setExtendAttrs(ExtendAttrs extendAttrs) {
this.extendAttrs = extendAttrs;
}

public static class SupportedAppsItem {

private String signatureHash;

private String packageName;

public String getSignatureHash() {
return this.signatureHash;
}

public void setSignatureHash(String signatureHash) {
this.signatureHash = signatureHash;
}

public String getPackageName() {
return this.packageName;
}

public void setPackageName(String packageName) {
this.packageName = packageName;
}
}

public static class ExtendAttrs {

private String nextTemplateCode;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,9 @@ public static class ButtonsItem {
@SerializedName("NavigateScreen")
private String navigateScreen;

@SerializedName("SupportedApps")
private List<SupportedAppsItem> supportedApps;

public String getType() {
return this.type;
}
Expand Down Expand Up @@ -482,6 +485,39 @@ public String getNavigateScreen() {
public void setNavigateScreen(String navigateScreen) {
this.navigateScreen = navigateScreen;
}

public List<SupportedAppsItem> getSupportedApps() {
return this.supportedApps;
}

public void setSupportedApps(List<SupportedAppsItem> supportedApps) {
this.supportedApps = supportedApps;
}

public static class SupportedAppsItem {

@SerializedName("SignatureHash")
private String signatureHash;

@SerializedName("PackageName")
private String packageName;

public String getSignatureHash() {
return this.signatureHash;
}

public void setSignatureHash(String signatureHash) {
this.signatureHash = signatureHash;
}

public String getPackageName() {
return this.packageName;
}

public void setPackageName(String packageName) {
this.packageName = packageName;
}
}
}

public static class CardsItem {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import com.aliyuncs.cams.model.v20200606.GetChatappTemplateDetailResponse.Data.Component;
import com.aliyuncs.cams.model.v20200606.GetChatappTemplateDetailResponse.Data.Component.Button;
import com.aliyuncs.cams.model.v20200606.GetChatappTemplateDetailResponse.Data.Component.Button.ExtendAttrs;
import com.aliyuncs.cams.model.v20200606.GetChatappTemplateDetailResponse.Data.Component.Button.SupportedAppsItem;
import com.aliyuncs.cams.model.v20200606.GetChatappTemplateDetailResponse.Data.Component.轮播卡片列表;
import com.aliyuncs.cams.model.v20200606.GetChatappTemplateDetailResponse.Data.Component.轮播卡片列表.卡片控件列表;
import com.aliyuncs.cams.model.v20200606.GetChatappTemplateDetailResponse.Data.Component.轮播卡片列表.卡片控件列表.卡片按钮列表;
Expand Down Expand Up @@ -96,6 +97,16 @@ public static GetChatappTemplateDetailResponse unmarshall(GetChatappTemplateDeta
extendAttrs.setIntentCode(_ctx.stringValue("GetChatappTemplateDetailResponse.Data.Components["+ i +"].Buttons["+ j +"].ExtendAttrs.IntentCode"));
button.setExtendAttrs(extendAttrs);

List<SupportedAppsItem> supportedApps = new ArrayList<SupportedAppsItem>();
for (int k = 0; k < _ctx.lengthValue("GetChatappTemplateDetailResponse.Data.Components["+ i +"].Buttons["+ j +"].SupportedApps.Length"); k++) {
SupportedAppsItem supportedAppsItem = new SupportedAppsItem();
supportedAppsItem.setSignatureHash(_ctx.stringValue("GetChatappTemplateDetailResponse.Data.Components["+ i +"].Buttons["+ j +"].SupportedApps["+ k +"].SignatureHash"));
supportedAppsItem.setPackageName(_ctx.stringValue("GetChatappTemplateDetailResponse.Data.Components["+ i +"].Buttons["+ j +"].SupportedApps["+ k +"].PackageName"));

supportedApps.add(supportedAppsItem);
}
button.setSupportedApps(supportedApps);

buttons.add(button);
}
component.setButtons(buttons);
Expand Down

0 comments on commit 2861e0b

Please sign in to comment.