weChatAuthCall method

void weChatAuthCall(
  1. AuthStatus status,
  2. AuthorizeCall authorizeCall,
  3. Map<String, dynamic> arguments
)

Implementation

void weChatAuthCall(AuthStatus status, AuthorizeCall authorizeCall, Map<String, dynamic> arguments) {
  if (status == AuthStatus.success) {
    authorizeCall(AuthType.weChat, AuthStatus.success, arguments);
  } else if (status == AuthStatus.cancel) {
    authorizeCall(AuthType.weChat, AuthStatus.cancel, arguments);
  } else {
    authorizeCall(AuthType.weChat, AuthStatus.fail, arguments);
  }
}