NIMSDK-AOS  9.16.0
Public 成员函数 | 所有成员列表
com.netease.nimlib.sdk.robot.RobotService接口 参考

机器人操作相关接口 更多...

Public 成员函数

List< NimRobotInfogetAllRobots ()
 获取本地所有有效的机器人 更多...
 
NimRobotInfo getRobotInfo (String account)
 根据账号本地获取机器人信息 更多...
 
List< NimRobotInfogetRobotInfoList (List< String > accounts)
 根据账号集合本地获取机器人信息集合 更多...
 
boolean isRobot (String account)
 判断该账号是否是机器人账号 更多...
 
InvocationFuture< List< NimRobotInfo > > pullAllRobots ()
 获取全部机器人列表,和服务端同步 更多...
 

详细描述

机器人操作相关接口

在文件 RobotService.java14 行定义.

成员函数说明

◆ getAllRobots()

List<NimRobotInfo> com.netease.nimlib.sdk.robot.RobotService.getAllRobots ( )

获取本地所有有效的机器人

返回
机器人信息集合

◆ getRobotInfo()

NimRobotInfo com.netease.nimlib.sdk.robot.RobotService.getRobotInfo ( String  account)

根据账号本地获取机器人信息

参数
account机器人账号
返回
机器人信息

◆ getRobotInfoList()

List<NimRobotInfo> com.netease.nimlib.sdk.robot.RobotService.getRobotInfoList ( List< String >  accounts)

根据账号集合本地获取机器人信息集合

参数
accounts机器人账号集合
返回
机器人信息集合

◆ isRobot()

boolean com.netease.nimlib.sdk.robot.RobotService.isRobot ( String  account)

判断该账号是否是机器人账号

参数
account用户账号
返回
该账号是否为机器人

◆ pullAllRobots()

InvocationFuture<List<NimRobotInfo> > com.netease.nimlib.sdk.robot.RobotService.pullAllRobots ( )

获取全部机器人列表,和服务端同步

返回
InvocationFuture 可设置回调函数。回调中返回操作成功或者失败具体的错误码。

该接口的文档由以下文件生成: