Skip to content

Commit

Permalink
FIX: Move classes to a package.
Browse files Browse the repository at this point in the history
  • Loading branch information
epool committed Jul 1, 2018
1 parent fa42219 commit 5c073c0
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package com.nearsoft.ipapiklient

import com.nearsoft.ipapiklient.models.IpCheckResult
import io.reactivex.Single
import models.IpCheckResult
import retrofit2.http.GET
import retrofit2.http.Path
import retrofit2.http.Query
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
package com.nearsoft.ipapiklient

import com.google.gson.GsonBuilder
import gson.IpCheckResultAdapter
import com.nearsoft.ipapiklient.gson.IpCheckResultAdapter
import com.nearsoft.ipapiklient.models.IpCheckResult
import com.nearsoft.ipapiklient.models.IpInfo
import io.reactivex.Single
import models.IpCheckResult
import models.IpInfo
import okhttp3.OkHttpClient
import okhttp3.logging.HttpLoggingInterceptor
import retrofit2.Retrofit
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package gson
package com.nearsoft.ipapiklient.gson

import com.google.gson.Gson
import com.google.gson.JsonDeserializationContext
import com.google.gson.JsonDeserializer
import com.google.gson.JsonElement
import models.IpCheckResult
import models.IpError
import models.IpInfo
import com.nearsoft.ipapiklient.models.IpCheckResult
import com.nearsoft.ipapiklient.models.IpError
import com.nearsoft.ipapiklient.models.IpInfo
import java.lang.reflect.Type

object IpCheckResultAdapter : JsonDeserializer<IpCheckResult> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package models
package com.nearsoft.ipapiklient.models

data class IpCheckResult(val ipInfo: IpInfo?, val ipError: IpError?) {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package models
package com.nearsoft.ipapiklient.models

/**
* In case we don't have data on a specific field, the returned value will be, depending on the field type:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package models
package com.nearsoft.ipapiklient.models

/**
* In case we don't have data on a specific field, the returned value will be, depending on the field type:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import models.IpError
import models.IpInfo
package com.nearsoft.ipapiklient

import com.nearsoft.ipapiklient.models.IpError
import com.nearsoft.ipapiklient.models.IpInfo
import org.jetbrains.spek.api.Spek
import org.jetbrains.spek.api.dsl.given
import org.jetbrains.spek.api.dsl.it
Expand Down

0 comments on commit 5c073c0

Please sign in to comment.