GetAllUserConfig static method

Future<UserConfigMap> GetAllUserConfig()

Implementation

static Future<UserConfigMap> GetAllUserConfig() async {
  String jwt = await getJWT();
  final channel = await Channel.getDefaultIoTManagerChannel();
  final stub = ConfigManagerClient(channel,
      options: CallOptions(metadata: {'jwt': jwt}));
  Empty empty = Empty();
  UserConfigMap configMap = await stub.getAllUserConfig(empty);
  print('GetAllUserConfig: ${configMap}');
  channel.shutdown();
  return configMap;
}