Skip to content

Commit

Permalink
rename asString to asRecord in response models
Browse files Browse the repository at this point in the history
  • Loading branch information
JarvanMo committed Dec 9, 2023
1 parent 7a2c0c3 commit cea7664
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions lib/src/response/wechat_response.dart
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ sealed class WeChatResponse {

bool get isSuccessful => errCode == 0;

Record asString() {
Record asRecord() {
return ();
}
}
Expand All @@ -82,7 +82,7 @@ class WeChatOpenInvoiceResponse extends WeChatResponse {
super._(map[_errCode], map[_errStr]);

@override
Record asString() {
Record asRecord() {
return (errCode: errCode, errStr: errStr, cardItemList: cardItemList);
}
}
Expand All @@ -95,7 +95,7 @@ class WeChatShareResponse extends WeChatResponse {
final int type;

@override
Record asString() {
Record asRecord() {
return (errCode: errCode, errStr: errStr, type: type);
}
}
Expand All @@ -116,7 +116,7 @@ class WeChatAuthResponse extends WeChatResponse {
final String? state;

@override
Record asString() {
Record asRecord() {
return (
errCode: errCode,
errStr: errStr,
Expand All @@ -139,7 +139,7 @@ class WeChatLaunchMiniProgramResponse extends WeChatResponse {
final String? extMsg;

@override
Record asString() {
Record asRecord() {
return (errCode: errCode, errStr: errStr, type: type, extMsg: extMsg);
}
}
Expand All @@ -154,7 +154,7 @@ class WeChatPaymentResponse extends WeChatResponse {
final String? extData;

@override
Record asString() {
Record asRecord() {
return (errCode: errCode, errStr: errStr, type: type, extData: extData);
}
}
Expand All @@ -167,7 +167,7 @@ class WeChatOpenCustomerServiceChatResponse extends WeChatResponse {
final String? extMsg;

@override
Record asString() {
Record asRecord() {
return (errCode: errCode, errStr: errStr, extMsg: extMsg);
}
}
Expand All @@ -186,7 +186,7 @@ class WeChatOpenBusinessViewResponse extends WeChatResponse {
super._(map[_errCode], map[_errStr]);

@override
Record asString() {
Record asRecord() {
return (
errCode: errCode,
errStr: errStr,
Expand Down Expand Up @@ -214,7 +214,7 @@ class WeChatSubscribeMsgResponse extends WeChatResponse {
final int scene;

@override
Record asString() {
Record asRecord() {
return (
errCode: errCode,
errStr: errStr,
Expand All @@ -239,7 +239,7 @@ class WeChatOpenBusinessWebviewResponse extends WeChatResponse {
final String resultInfo;

@override
Record asString() {
Record asRecord() {
return (
errCode: errCode,
errStr: errStr,
Expand All @@ -261,7 +261,7 @@ class WeChatAuthByQRCodeFinishedResponse extends WeChatResponse {
final AuthByQRCodeErrorCode? qrCodeErrorCode;

@override
Record asString() {
Record asRecord() {
return (
errCode: errCode,
errStr: errStr,
Expand Down Expand Up @@ -303,7 +303,7 @@ class WeChatShowMessageFromWXRequest extends WeChatResponse {
final String? extMsg;

@override
Record asString() {
Record asRecord() {
return (
errCode: errCode,
errStr: errStr,
Expand Down Expand Up @@ -331,7 +331,7 @@ class WeChatLaunchFromWXRequest extends WeChatResponse {
final String? extMsg;

@override
Record asString() {
Record asRecord() {
return (
errCode: errCode,
errStr: errStr,
Expand Down

0 comments on commit cea7664

Please sign in to comment.