2525import codeu .chat .common .NetworkCode ;
2626import codeu .chat .common .Time ;
2727import codeu .chat .common .User ;
28- import codeu .chat .common .Uuid ;
29- import codeu .chat .common .Uuids ;
3028import codeu .chat .util .Logger ;
3129import codeu .chat .util .Serializers ;
30+ import codeu .chat .util .Uuid ;
3231import codeu .chat .util .connections .Connection ;
3332import codeu .chat .util .connections .ConnectionSource ;
3433
@@ -55,7 +54,7 @@ public Collection<User> getUsers(Collection<Uuid> ids) {
5554 try (final Connection connection = source .connect ()) {
5655
5756 Serializers .INTEGER .write (connection .out (), NetworkCode .GET_USERS_BY_ID_REQUEST );
58- Serializers .collection (Uuids .SERIALIZER ).write (connection .out (), ids );
57+ Serializers .collection (Uuid .SERIALIZER ).write (connection .out (), ids );
5958
6059 if (Serializers .INTEGER .read (connection .in ()) == NetworkCode .GET_USERS_BY_ID_RESPONSE ) {
6160 users .addAll (Serializers .collection (User .SERIALIZER ).read (connection .in ()));
@@ -102,7 +101,7 @@ public Collection<Conversation> getConversations(Collection<Uuid> ids) {
102101 try (final Connection connection = source .connect ()) {
103102
104103 Serializers .INTEGER .write (connection .out (), NetworkCode .GET_CONVERSATIONS_BY_ID_REQUEST );
105- Serializers .collection (Uuids .SERIALIZER ).write (connection .out (), ids );
104+ Serializers .collection (Uuid .SERIALIZER ).write (connection .out (), ids );
106105
107106 if (Serializers .INTEGER .read (connection .in ()) == NetworkCode .GET_CONVERSATIONS_BY_ID_RESPONSE ) {
108107 conversations .addAll (Serializers .collection (Conversation .SERIALIZER ).read (connection .in ()));
@@ -125,7 +124,7 @@ public Collection<Message> getMessages(Collection<Uuid> ids) {
125124 try (final Connection connection = source .connect ()) {
126125
127126 Serializers .INTEGER .write (connection .out (), NetworkCode .GET_MESSAGES_BY_ID_REQUEST );
128- Serializers .collection (Uuids .SERIALIZER ).write (connection .out (), ids );
127+ Serializers .collection (Uuid .SERIALIZER ).write (connection .out (), ids );
129128
130129 if (Serializers .INTEGER .read (connection .in ()) == NetworkCode .GET_CONVERSATIONS_BY_ID_RESPONSE ) {
131130 messages .addAll (Serializers .collection (Message .SERIALIZER ).read (connection .in ()));
@@ -143,14 +142,14 @@ public Collection<Message> getMessages(Collection<Uuid> ids) {
143142 @ Override
144143 public Uuid getUserGeneration () {
145144
146- Uuid generation = Uuids .NULL ;
145+ Uuid generation = Uuid .NULL ;
147146
148147 try (final Connection connection = source .connect ()) {
149148
150149 Serializers .INTEGER .write (connection .out (), NetworkCode .GET_USER_GENERATION_REQUEST );
151150
152151 if (Serializers .INTEGER .read (connection .in ()) == NetworkCode .GET_USER_GENERATION_RESPONSE ) {
153- generation = Uuids .SERIALIZER .read (connection .in ());
152+ generation = Uuid .SERIALIZER .read (connection .in ());
154153 } else {
155154 LOG .error ("Response from server failed" );
156155 }
@@ -170,7 +169,7 @@ public Collection<User> getUsersExcluding(Collection<Uuid> ids) {
170169 try (final Connection connection = source .connect ()) {
171170
172171 Serializers .INTEGER .write (connection .out (), NetworkCode .GET_USERS_EXCLUDING_REQUEST );
173- Serializers .collection (Uuids .SERIALIZER ).write (connection .out (), ids );
172+ Serializers .collection (Uuid .SERIALIZER ).write (connection .out (), ids );
174173
175174 if (Serializers .INTEGER .read (connection .in ()) == NetworkCode .GET_USERS_EXCLUDING_RESPONSE ) {
176175 users .addAll (Serializers .collection (User .SERIALIZER ).read (connection .in ()));
@@ -265,7 +264,7 @@ public Collection<Message> getMessages(Uuid rootMessage, int range) {
265264 try (final Connection connection = source .connect ()) {
266265
267266 Serializers .INTEGER .write (connection .out (), NetworkCode .GET_MESSAGES_BY_RANGE_REQUEST );
268- Uuids .SERIALIZER .write (connection .out (), rootMessage );
267+ Uuid .SERIALIZER .write (connection .out (), rootMessage );
269268 Serializers .INTEGER .write (connection .out (), range );
270269
271270 if (Serializers .INTEGER .read (connection .in ()) == NetworkCode .GET_MESSAGES_BY_RANGE_RESPONSE ) {
0 commit comments