|
@@ -557,6 +557,55 @@ class GetAssociatedAccountInfoRequest extends TokenRequest{
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+class ClearAssociatedWithAccountResult {
|
|
|
+ bool isSuccess;
|
|
|
+ AssociatedAccountResultEnum state;
|
|
|
+
|
|
|
+ ClearAssociatedWithAccountResult({
|
|
|
+ this.isSuccess = false,
|
|
|
+ this.state = AssociatedAccountResultEnum.Success,
|
|
|
+ });
|
|
|
+
|
|
|
+ factory ClearAssociatedWithAccountResult.fromJson(Map<String, dynamic> map) {
|
|
|
+ return ClearAssociatedWithAccountResult(
|
|
|
+ isSuccess: map['IsSuccess'],
|
|
|
+ state: AssociatedAccountResultEnum.values.firstWhere((e) => e.index == map['State']),
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
+ Map<String, dynamic> toJson() {
|
|
|
+ final map = Map<String, dynamic>();
|
|
|
+ map['IsSuccess'] = isSuccess;
|
|
|
+ map['State'] = state.index;
|
|
|
+ return map;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+class ClearAssociatedWithAccountRequest extends TokenRequest{
|
|
|
+ String? thirdPartyUserId;
|
|
|
+
|
|
|
+ ClearAssociatedWithAccountRequest({
|
|
|
+ this.thirdPartyUserId,
|
|
|
+ String? token,
|
|
|
+ }) : super(
|
|
|
+ token: token,
|
|
|
+ );
|
|
|
+
|
|
|
+ factory ClearAssociatedWithAccountRequest.fromJson(Map<String, dynamic> map) {
|
|
|
+ return ClearAssociatedWithAccountRequest(
|
|
|
+ thirdPartyUserId: map['ThirdPartyUserId'],
|
|
|
+ token: map['Token'],
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
+ Map<String, dynamic> toJson() {
|
|
|
+ final map = super.toJson();
|
|
|
+ if(thirdPartyUserId != null)
|
|
|
+ map['ThirdPartyUserId'] = thirdPartyUserId;
|
|
|
+ return map;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
class GetScanCodeResult {
|
|
|
int validSeconds;
|
|
|
String? scanCode;
|