class ConsentContextResult
cangjie
public class ConsentContextResult功能:表示同意页面上下文结果。
成员概览
| 成员 | 功能 |
|---|---|
| init(Client, ResourceCollection) | 创建同意上下文结果。 |
| func toJson() | 将同意上下文转换为 JSON 值。 |
init(Client, ResourceCollection)
cangjie
public ConsentContextResult(public let client: Client, public let resources: ResourceCollection)功能:创建同意上下文结果。
参数:
- client: Client - 当前客户端。
- resources: ResourceCollection - 当前资源集合。
func toJson()
cangjie
public func toJson(): JsonValue功能:将同意上下文转换为 JSON 值。
返回值:
JsonValue- 返回同意上下文 JSON 对象。