GetAllMySharedServers static method
Future<ServerInfoList>
GetAllMySharedServers(
)
Implementation
static Future<ServerInfoList> GetAllMySharedServers() async {
String jwt = await getJWT();
final channel = await Channel.getDefaultIoTManagerChannel();
final stub = ServerManagerClient(channel,
options: CallOptions(metadata: {'jwt': jwt}));
Empty empty = Empty();
ServerInfoList serverInfoList = await stub.getAllMySharedServers(empty);
print('GetAllServer: ${serverInfoList}');
channel.shutdown();
return serverInfoList;
}