@@ -18,7 +18,7 @@ class RxAccounts(client: MastodonClient) {
1818 try {
1919 val account = accounts.getAccount(accountId).execute()
2020 it.onSuccess(account)
21- } catch (throwable: Throwable ) {
21+ } catch (throwable: Throwable ) {
2222 it.onErrorIfNotDisposed(throwable)
2323 }
2424 }
@@ -29,7 +29,7 @@ class RxAccounts(client: MastodonClient) {
2929 try {
3030 val credential = accounts.getVerifyCredentials().execute()
3131 it.onSuccess(credential)
32- } catch (throwable: Throwable ) {
32+ } catch (throwable: Throwable ) {
3333 it.onErrorIfNotDisposed(throwable)
3434 }
3535 }
@@ -40,7 +40,7 @@ class RxAccounts(client: MastodonClient) {
4040 try {
4141 val credential = accounts.updateCredential(displayName, note, avatar, header).execute()
4242 it.onSuccess(credential)
43- } catch (throwable: Throwable ) {
43+ } catch (throwable: Throwable ) {
4444 it.onErrorIfNotDisposed(throwable)
4545 }
4646 }
@@ -51,7 +51,7 @@ class RxAccounts(client: MastodonClient) {
5151 try {
5252 val followers = accounts.getFollowers(accountId, range).execute()
5353 it.onSuccess(followers)
54- } catch (throwable: Throwable ) {
54+ } catch (throwable: Throwable ) {
5555 it.onErrorIfNotDisposed(throwable)
5656 }
5757 }
@@ -62,7 +62,7 @@ class RxAccounts(client: MastodonClient) {
6262 try {
6363 val following = accounts.getFollowing(accountId, range).execute()
6464 it.onSuccess(following)
65- } catch (throwable: Throwable ) {
65+ } catch (throwable: Throwable ) {
6666 it.onErrorIfNotDisposed(throwable)
6767 }
6868 }
@@ -71,9 +71,9 @@ class RxAccounts(client: MastodonClient) {
7171 fun getStatuses (accountId : Long , onlyMedia : Boolean , range : Range ): Single <Pageable <Status >> {
7272 return Single .create {
7373 try {
74- val statuses = accounts.getStatuses(accountId, onlyMedia, range).execute()
74+ val statuses = accounts.getStatuses(accountId, onlyMedia, range = range ).execute()
7575 it.onSuccess(statuses)
76- } catch (throwable: Throwable ) {
76+ } catch (throwable: Throwable ) {
7777 it.onErrorIfNotDisposed(throwable)
7878 }
7979 }
@@ -84,7 +84,7 @@ class RxAccounts(client: MastodonClient) {
8484 try {
8585 val relationship = accounts.postFollow(accountId).execute()
8686 it.onSuccess(relationship)
87- } catch (throwable: Throwable ) {
87+ } catch (throwable: Throwable ) {
8888 it.onErrorIfNotDisposed(throwable)
8989 }
9090 }
@@ -95,7 +95,7 @@ class RxAccounts(client: MastodonClient) {
9595 try {
9696 val relationship = accounts.postUnFollow(accountId).execute()
9797 it.onSuccess(relationship)
98- } catch (throwable: Throwable ) {
98+ } catch (throwable: Throwable ) {
9999 it.onErrorIfNotDisposed(throwable)
100100 }
101101 }
@@ -106,7 +106,7 @@ class RxAccounts(client: MastodonClient) {
106106 try {
107107 val relationship = accounts.postBlock(accountId).execute()
108108 it.onSuccess(relationship)
109- } catch (throwable: Throwable ) {
109+ } catch (throwable: Throwable ) {
110110 it.onErrorIfNotDisposed(throwable)
111111 }
112112 }
@@ -117,7 +117,7 @@ class RxAccounts(client: MastodonClient) {
117117 try {
118118 val relationship = accounts.postUnblock(accountId).execute()
119119 it.onSuccess(relationship)
120- } catch (throwable: Throwable ) {
120+ } catch (throwable: Throwable ) {
121121 it.onErrorIfNotDisposed(throwable)
122122 }
123123 }
@@ -128,7 +128,7 @@ class RxAccounts(client: MastodonClient) {
128128 try {
129129 val relationship = accounts.postMute(accountId).execute()
130130 it.onSuccess(relationship)
131- } catch (throwable: Throwable ) {
131+ } catch (throwable: Throwable ) {
132132 it.onErrorIfNotDisposed(throwable)
133133 }
134134 }
@@ -139,7 +139,7 @@ class RxAccounts(client: MastodonClient) {
139139 try {
140140 val relationship = accounts.postUnmute(accountId).execute()
141141 it.onSuccess(relationship)
142- } catch (throwable: Throwable ) {
142+ } catch (throwable: Throwable ) {
143143 it.onErrorIfNotDisposed(throwable)
144144 }
145145 }
@@ -150,7 +150,7 @@ class RxAccounts(client: MastodonClient) {
150150 try {
151151 val relationships = accounts.getRelationships(accountIds).execute()
152152 it.onSuccess(relationships)
153- } catch (throwable: Throwable ) {
153+ } catch (throwable: Throwable ) {
154154 it.onErrorIfNotDisposed(throwable)
155155 }
156156 }
@@ -161,7 +161,7 @@ class RxAccounts(client: MastodonClient) {
161161 try {
162162 val accounts = accounts.getAccountSearch(query, limit).execute()
163163 it.onSuccess(accounts)
164- } catch (throwable: Throwable ) {
164+ } catch (throwable: Throwable ) {
165165 it.onErrorIfNotDisposed(throwable)
166166 }
167167 }
0 commit comments