Skip to content

Commit

Permalink
change type to Connection<T>
Browse files Browse the repository at this point in the history
  • Loading branch information
utsavdotpro committed Mar 5, 2022
1 parent 8023b86 commit 7624b6e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ abstract class Connection<T>() {
onResponseReceived(mutatedResponseString)

try {
val res = Gson().fromJson<T>(mutatedResponseString, object : TypeToken<T>() {}.type);
val res = Gson().fromJson<T>(mutatedResponseString, object : TypeToken<Connection<T>>() {}.type);

onSuccess(res);

Expand Down

0 comments on commit 7624b6e

Please sign in to comment.