Handoff media upload (#2947)
* handoff media upload to SendStatusService * fix bugd * improve code * don't check processing state when upload returned 200
This commit is contained in:
parent
9cf949fc2e
commit
abca91a420
7 changed files with 204 additions and 118 deletions
|
|
@ -1,8 +1,8 @@
|
|||
package com.keylesspalace.tusky.network
|
||||
|
||||
import at.connyduck.calladapter.networkresult.NetworkResult
|
||||
import com.keylesspalace.tusky.entity.MediaUploadResult
|
||||
import okhttp3.MultipartBody
|
||||
import retrofit2.Response
|
||||
import retrofit2.http.Multipart
|
||||
import retrofit2.http.POST
|
||||
import retrofit2.http.Part
|
||||
|
|
@ -17,5 +17,5 @@ interface MediaUploadApi {
|
|||
@Part file: MultipartBody.Part,
|
||||
@Part description: MultipartBody.Part? = null,
|
||||
@Part focus: MultipartBody.Part? = null
|
||||
): NetworkResult<MediaUploadResult>
|
||||
): Response<MediaUploadResult>
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue