UpDevice

device

UpDevice

)(

g_ptr_array_index

devices

));

double

percentage

g_object_get

device

"percentage"

percentage

nullptr

);

g_autoptr

FlValue

result

fl_value_new_int

static_cast

int64_t

round

percentage

)));

return

FL_METHOD_RESPONSE

fl_method_success_response_new

result

));