Removed unused classes
Using dagger for Retrofit2, OkHttp and Gson
This commit is contained in:
@@ -1,12 +0,0 @@
|
||||
package com.meloda.fast.api.model
|
||||
|
||||
data class ApiResponse<T> constructor(
|
||||
val isSuccessful: Boolean,
|
||||
val error: Error?,
|
||||
val response: T?
|
||||
)
|
||||
|
||||
data class Error constructor(
|
||||
val code: Long,
|
||||
val message: String
|
||||
)
|
||||
@@ -1,7 +1,7 @@
|
||||
package com.meloda.fast.api.model
|
||||
|
||||
import android.util.ArrayMap
|
||||
import com.meloda.fast.api.util.VKUtil
|
||||
import com.meloda.fast.api.VKUtil
|
||||
import org.json.JSONObject
|
||||
|
||||
open class VKMessage() : VKModel() {
|
||||
|
||||
-21
@@ -1,21 +0,0 @@
|
||||
package com.meloda.fast.api.model.request
|
||||
|
||||
import com.google.gson.annotations.SerializedName
|
||||
|
||||
class RequestMessagesGetConversations(
|
||||
@SerializedName("offset")
|
||||
private val offset: Int = 0,
|
||||
|
||||
@SerializedName("count")
|
||||
private val count: Int = 0,
|
||||
|
||||
//values = all, unread
|
||||
@SerializedName("filter")
|
||||
private val filter: String = "",
|
||||
|
||||
@SerializedName("extended")
|
||||
private val extended: Boolean = false,
|
||||
|
||||
@SerializedName("fields")
|
||||
private var fields: String = ""
|
||||
)
|
||||
@@ -1,13 +0,0 @@
|
||||
package com.meloda.fast.api.model.response
|
||||
|
||||
import android.os.Parcelable
|
||||
import kotlinx.parcelize.Parcelize
|
||||
|
||||
class MessagesResponse(
|
||||
val count: Int
|
||||
) {
|
||||
}
|
||||
|
||||
@Parcelize
|
||||
data class GetConversationsResponse(val a: String) : Parcelable
|
||||
// TODO: 7/12/2021 use hilt for this like in LIR and make simple conversations' screen
|
||||
Reference in New Issue
Block a user