Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: get black list api #213

Merged
merged 1 commit into from
Oct 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions docs/sdks/api/relation/getBlackList.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ values={[
### 函数原型

```dart showLineNumbers
Future<List<BlacklistInfo>> getBlacklist({String? operationID})
Future<List<BlacklistInfo>> getBlackList({String? operationID})
```

### 输入参数
Expand All @@ -49,7 +49,7 @@ values={[
### 代码示例

```dart showLineNumbers
List<BlacklistInfo> list = await OpenIM.iMManager.friendshipManager.getBlacklist();
List<BlacklistInfo> list = await OpenIM.iMManager.friendshipManager.getBlackList();
// todo
```

Expand Down Expand Up @@ -95,7 +95,7 @@ values={[

```java showLineNumbers

public void getBlacklist(OnBase<List<UserInfo>> callBack)
public void getBlackList(OnBase<List<UserInfo>> callBack)

```

Expand All @@ -111,7 +111,7 @@ public void getBlacklist(OnBase<List<UserInfo>> callBack)

```java showLineNumbers

OpenIMClient.getInstance().friendshipManager.getBlacklist(new OnBase<List<UserInfo>>(){...})
OpenIMClient.getInstance().friendshipManager.getBlackList(new OnBase<List<UserInfo>>(){...})

```

Expand All @@ -122,7 +122,7 @@ OpenIMClient.getInstance().friendshipManager.getBlacklist(new OnBase<List<UserIn
### 函数原型

```ts showLineNumbers
IMSDK.getBlacklist(operationID?: string): Promise<WsResponse<BlackUserItem[]>>
IMSDK.getBlackList(operationID?: string): Promise<WsResponse<BlackUserItem[]>>
```

### 输入参数
Expand Down Expand Up @@ -150,7 +150,7 @@ const IMSDK = getSDK();
// import { OpenIMSDK } from 'open-im-sdk';
// const IMSDK = new OpenIMSDK();

IMSDK.getBlacklist()
IMSDK.getBlackList()
.then(({ data }) => {
// 调用成功
})
Expand All @@ -166,7 +166,7 @@ IMSDK.getBlacklist()
### 函数原型

```ts showLineNumbers
IMSDK.asyncApi('getBlacklist', operationID: string): Promise<BlackUserItem[]>
IMSDK.asyncApi('getBlackList', operationID: string): Promise<BlackUserItem[]>
```

### 输入参数
Expand All @@ -189,7 +189,7 @@ IMSDK.asyncApi('getBlacklist', operationID: string): Promise<BlackUserItem[]>
```js showLineNumbers
import IMSDK from 'openim-uniapp-polyfill';

IMSDK.asyncApi('getBlacklist', IMSDK.uuid())
IMSDK.asyncApi('getBlackList', IMSDK.uuid())
.then((data) => {
// 调用成功
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ values={[
### Function Prototype

```dart showLineNumbers
Future<List<BlacklistInfo>> getBlacklist({String? operationID})
Future<List<BlacklistInfo>> getBlackList({String? operationID})
```

### Input Parameters
Expand All @@ -48,7 +48,7 @@ None
### Code Example

```dart showLineNumbers
List<BlacklistInfo> list = await OpenIM.iMManager.friendshipManager.getBlacklist();
List<BlacklistInfo> list = await OpenIM.iMManager.friendshipManager.getBlackList();
// todo
```

Expand Down Expand Up @@ -94,7 +94,7 @@ None

```java showLineNumbers

public void getBlacklist(OnBase<List<UserInfo>> callBack)
public void getBlackList(OnBase<List<UserInfo>> callBack)

```

Expand All @@ -110,7 +110,7 @@ public void getBlacklist(OnBase<List<UserInfo>> callBack)

```java showLineNumbers

OpenIMClient.getInstance().friendshipManager.getBlacklist(new OnBase<List<UserInfo>>(){...})
OpenIMClient.getInstance().friendshipManager.getBlackList(new OnBase<List<UserInfo>>(){...})

```

Expand All @@ -121,7 +121,7 @@ OpenIMClient.getInstance().friendshipManager.getBlacklist(new OnBase<List<UserIn
### Function Prototype

```ts showLineNumbers
IMSDK.getBlacklist(operationID?: string): Promise<WsResponse<BlackUserItem[]>>
IMSDK.getBlackList(operationID?: string): Promise<WsResponse<BlackUserItem[]>>
```

### Input Parameters
Expand Down Expand Up @@ -149,7 +149,7 @@ const IMSDK = getSDK();
// import { OpenIMSDK } from 'open-im-sdk';
// const IMSDK = new OpenIMSDK();

IMSDK.getBlacklist()
IMSDK.getBlackList()
.then(({ data }) => {
// Successful call
})
Expand All @@ -165,7 +165,7 @@ IMSDK.getBlacklist()
### Function Prototype

```ts showLineNumbers
IMSDK.asyncApi('getBlacklist', operationID: string): Promise<BlackUserItem[]>
IMSDK.asyncApi('getBlackList', operationID: string): Promise<BlackUserItem[]>
```

### Input Parameters
Expand All @@ -188,7 +188,7 @@ IMSDK.asyncApi('getBlacklist', operationID: string): Promise<BlackUserItem[]>
```js showLineNumbers
import IMSDK from 'openim-uniapp-polyfill';

IMSDK.asyncApi('getBlacklist', IMSDK.uuid())
IMSDK.asyncApi('getBlackList', IMSDK.uuid())
.then((data) => {
// Successful call
})
Expand Down
Loading