提交 1b2a76da authored 作者: Jarvan Mo's avatar Jarvan Mo

update docs

上级 1a732a93
part of 'arguments.dart'; part of 'arguments.dart';
/// The base class for all AuthType
sealed class AuthType with _Argument {} sealed class AuthType with _Argument {}
/// The WeChat-Login is under Auth-2.0 /// The WeChat-Login is under Auth-2.0
......
...@@ -31,6 +31,7 @@ class BusinessView extends OpenType { ...@@ -31,6 +31,7 @@ class BusinessView extends OpenType {
{"businessType": businessType, "query": query}; {"businessType": businessType, "query": query};
} }
/// Inovice
class Invoice extends OpenType { class Invoice extends OpenType {
final String appId; final String appId;
final String cardType; final String cardType;
......
...@@ -30,6 +30,7 @@ const String _msgSignature = "msgSignature"; ...@@ -30,6 +30,7 @@ const String _msgSignature = "msgSignature";
const String _thumbData = "thumbData"; const String _thumbData = "thumbData";
const String _thumbDataHash = "thumbDataHash"; const String _thumbDataHash = "thumbDataHash";
/// Base class for all share models
sealed class WeChatShareModel with _Argument { sealed class WeChatShareModel with _Argument {
final String? title; final String? title;
final String? description; final String? description;
......
...@@ -87,7 +87,7 @@ class WeChatOpenInvoiceResponse extends WeChatResponse { ...@@ -87,7 +87,7 @@ class WeChatOpenInvoiceResponse extends WeChatResponse {
return (errCode: errCode, errStr: errStr, cardItemList: cardItemList); return (errCode: errCode, errStr: errStr, cardItemList: cardItemList);
} }
} }
/// The response when sharing finished.
class WeChatShareResponse extends WeChatResponse { class WeChatShareResponse extends WeChatResponse {
WeChatShareResponse.fromMap(Map map) WeChatShareResponse.fromMap(Map map)
: type = map['type'], : type = map['type'],
...@@ -101,6 +101,7 @@ class WeChatShareResponse extends WeChatResponse { ...@@ -101,6 +101,7 @@ class WeChatShareResponse extends WeChatResponse {
} }
} }
/// The response when auth finished.
class WeChatAuthResponse extends WeChatResponse { class WeChatAuthResponse extends WeChatResponse {
WeChatAuthResponse.fromMap(Map map) WeChatAuthResponse.fromMap(Map map)
: type = map['type'], : type = map['type'],
...@@ -130,6 +131,7 @@ class WeChatAuthResponse extends WeChatResponse { ...@@ -130,6 +131,7 @@ class WeChatAuthResponse extends WeChatResponse {
} }
} }
/// The response when launching mini program finished.
class WeChatLaunchMiniProgramResponse extends WeChatResponse { class WeChatLaunchMiniProgramResponse extends WeChatResponse {
WeChatLaunchMiniProgramResponse.fromMap(Map map) WeChatLaunchMiniProgramResponse.fromMap(Map map)
: type = map['type'], : type = map['type'],
...@@ -145,6 +147,7 @@ class WeChatLaunchMiniProgramResponse extends WeChatResponse { ...@@ -145,6 +147,7 @@ class WeChatLaunchMiniProgramResponse extends WeChatResponse {
} }
} }
/// The response when payment finished.
class WeChatPaymentResponse extends WeChatResponse { class WeChatPaymentResponse extends WeChatResponse {
WeChatPaymentResponse.fromMap(Map map) WeChatPaymentResponse.fromMap(Map map)
: type = map['type'], : type = map['type'],
...@@ -160,6 +163,7 @@ class WeChatPaymentResponse extends WeChatResponse { ...@@ -160,6 +163,7 @@ class WeChatPaymentResponse extends WeChatResponse {
} }
} }
/// The response when customer service chat finished.
class WeChatOpenCustomerServiceChatResponse extends WeChatResponse { class WeChatOpenCustomerServiceChatResponse extends WeChatResponse {
WeChatOpenCustomerServiceChatResponse.fromMap(Map map) WeChatOpenCustomerServiceChatResponse.fromMap(Map map)
: extMsg = map['extMsg'], : extMsg = map['extMsg'],
...@@ -173,6 +177,8 @@ class WeChatOpenCustomerServiceChatResponse extends WeChatResponse { ...@@ -173,6 +177,8 @@ class WeChatOpenCustomerServiceChatResponse extends WeChatResponse {
} }
} }
/// The response when open business view finished.
class WeChatOpenBusinessViewResponse extends WeChatResponse { class WeChatOpenBusinessViewResponse extends WeChatResponse {
final String? extMsg; final String? extMsg;
final String? openid; final String? openid;
...@@ -199,6 +205,7 @@ class WeChatOpenBusinessViewResponse extends WeChatResponse { ...@@ -199,6 +205,7 @@ class WeChatOpenBusinessViewResponse extends WeChatResponse {
} }
} }
/// The response when subscribe message finished.
class WeChatSubscribeMsgResponse extends WeChatResponse { class WeChatSubscribeMsgResponse extends WeChatResponse {
WeChatSubscribeMsgResponse.fromMap(Map map) WeChatSubscribeMsgResponse.fromMap(Map map)
: openid = map['openid'], : openid = map['openid'],
...@@ -228,6 +235,7 @@ class WeChatSubscribeMsgResponse extends WeChatResponse { ...@@ -228,6 +235,7 @@ class WeChatSubscribeMsgResponse extends WeChatResponse {
} }
} }
/// The response when open business webview finished.
class WeChatOpenBusinessWebviewResponse extends WeChatResponse { class WeChatOpenBusinessWebviewResponse extends WeChatResponse {
WeChatOpenBusinessWebviewResponse.fromMap(Map map) WeChatOpenBusinessWebviewResponse.fromMap(Map map)
: type = map['type'], : type = map['type'],
...@@ -250,7 +258,7 @@ class WeChatOpenBusinessWebviewResponse extends WeChatResponse { ...@@ -250,7 +258,7 @@ class WeChatOpenBusinessWebviewResponse extends WeChatResponse {
); );
} }
} }
/// The response when auth by QRCode finished.
class WeChatAuthByQRCodeFinishedResponse extends WeChatResponse { class WeChatAuthByQRCodeFinishedResponse extends WeChatResponse {
WeChatAuthByQRCodeFinishedResponse.fromMap(Map map) WeChatAuthByQRCodeFinishedResponse.fromMap(Map map)
: authCode = map['authCode'], : authCode = map['authCode'],
...@@ -296,7 +304,7 @@ class WeChatQRCodeScannedResponse extends WeChatResponse { ...@@ -296,7 +304,7 @@ class WeChatQRCodeScannedResponse extends WeChatResponse {
} }
} }
// 获取微信打开App时携带的参数 /// 获取微信打开App时携带的参数
class WeChatShowMessageFromWXRequest extends WeChatResponse { class WeChatShowMessageFromWXRequest extends WeChatResponse {
final String? country; final String? country;
final String? lang; final String? lang;
...@@ -327,6 +335,7 @@ class WeChatShowMessageFromWXRequest extends WeChatResponse { ...@@ -327,6 +335,7 @@ class WeChatShowMessageFromWXRequest extends WeChatResponse {
} }
} }
/// 获取微信打开App时携带的参数
class WeChatLaunchFromWXRequest extends WeChatResponse { class WeChatLaunchFromWXRequest extends WeChatResponse {
final String? country; final String? country;
final String? lang; final String? lang;
...@@ -354,6 +363,7 @@ class WeChatLaunchFromWXRequest extends WeChatResponse { ...@@ -354,6 +363,7 @@ class WeChatLaunchFromWXRequest extends WeChatResponse {
} }
} }
/// The error code returned by Wechat SDK.
enum AuthByQRCodeErrorCode { enum AuthByQRCodeErrorCode {
ok, // WechatAuth_Err_OK(0) ok, // WechatAuth_Err_OK(0)
normalErr, // WechatAuth_Err_NormalErr(-1) normalErr, // WechatAuth_Err_NormalErr(-1)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论