summaryrefslogtreecommitdiff
path: root/lib/polyjuice/client/low_level.ex
diff options
context:
space:
mode:
authorHubert Chathi <hubert@uhoreg.ca>2020-12-26 21:32:44 -0500
committerHubert Chathi <hubert@uhoreg.ca>2020-12-26 21:32:44 -0500
commitd11baa1ab6628781506ad17936dfcd5a9afd0821 (patch)
tree9c659069e71f84fd4ac9b9761115eb6e0190f3b7 /lib/polyjuice/client/low_level.ex
parentfix warnings in test (diff)
add function for getting user/device ID
and use it when the user ID is unspecified when setting/getting account data
Diffstat (limited to '')
-rw-r--r--lib/polyjuice/client/low_level.ex4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/polyjuice/client/low_level.ex b/lib/polyjuice/client/low_level.ex
index 54acf83..91b39ae 100644
--- a/lib/polyjuice/client/low_level.ex
+++ b/lib/polyjuice/client/low_level.ex
@@ -118,6 +118,10 @@ defmodule Polyjuice.Client.LowLevel do
"#{Node.self()}_#{:erlang.system_time(:millisecond)}_#{:erlang.unique_integer()}"
end
+ def get_user_and_device(%{user_id: user_id, device_id: device_id}) do
+ {user_id, device_id}
+ end
+
def stop(_, _, _) do
# don't need to do anything to stop it
:ok