summaryrefslogtreecommitdiff
path: root/src/reply
diff options
context:
space:
mode:
authornsensfel <SpamShield0@noot-noot.org>2018-03-13 18:12:28 +0100
committernsensfel <SpamShield0@noot-noot.org>2018-03-13 18:12:28 +0100
commitf3868d956b17f9606e7b7321914e7c08316a062c (patch)
treeea4baa16f6a8765e01a03c05f23b5cab3ec41869 /src/reply
parent68cfa3b73e6f7def9641b08c4acf2f0f96685843 (diff)
Separates original timeline from updates.
Diffstat (limited to 'src/reply')
-rw-r--r--src/reply/set_timeline.erl27
-rw-r--r--src/reply/turn_results.erl2
2 files changed, 28 insertions, 1 deletions
diff --git a/src/reply/set_timeline.erl b/src/reply/set_timeline.erl
new file mode 100644
index 0000000..bfe621a
--- /dev/null
+++ b/src/reply/set_timeline.erl
@@ -0,0 +1,27 @@
+-module(set_timeline).
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% TYPES %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% EXPORTS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+-export([generate/1]).
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% LOCAL FUNCTIONS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% EXPORTED FUNCTIONS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+-spec generate (list(any())) -> {list(any())}.
+generate (EncodedClientUpdate) ->
+ io:format("~nSending timeline:~n~p~n", [EncodedClientUpdate]),
+ {
+ [
+ {<<"msg">>, <<"set_timeline">>},
+ {<<"cnt">>, EncodedClientUpdate}
+ ]
+ }.
diff --git a/src/reply/turn_results.erl b/src/reply/turn_results.erl
index 8402389..0f3ff25 100644
--- a/src/reply/turn_results.erl
+++ b/src/reply/turn_results.erl
@@ -18,7 +18,7 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-spec generate (list(any())) -> {list(any())}.
generate (EncodedClientUpdate) ->
- io:format("~nSending timeline:~n~p~n", [EncodedClientUpdate]),
+ io:format("~nSending turn results:~n~p~n", [EncodedClientUpdate]),
{
[
{<<"msg">>, <<"turn_results">>},