UpdateUserNanme static method

Future<OperationResponse> UpdateUserNanme(
  1. StringValue stringValue
)

Implementation

static Future<OperationResponse> UpdateUserNanme(
    StringValue stringValue) async {
  String jwt = await getJWT();
  final channel = await Channel.getDefaultIoTManagerChannel();
  final stub = UserManagerClient(channel,
      options: CallOptions(metadata: {'jwt': jwt}));
  OperationResponse operationResponse =
      await stub.updateUserName(stringValue);
  print('UpdateUserNanme: ${operationResponse}');
  channel.shutdown();
  return operationResponse;
}