Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ParseResponseWithMoshi (0.1 sec)

  1. samples/guide/src/main/java/okhttp3/recipes/kt/ParseResponseWithMoshi.kt

     */
    package okhttp3.recipes.kt
    
    import com.squareup.moshi.JsonClass
    import com.squareup.moshi.Moshi
    import java.io.IOException
    import okhttp3.OkHttpClient
    import okhttp3.Request
    
    class ParseResponseWithMoshi {
      private val client = OkHttpClient()
      private val moshi = Moshi.Builder().build()
      private val gistJsonAdapter = moshi.adapter(Gist::class.java)
    
      fun run() {
        val request =
          Request.Builder()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  2. samples/guide/src/main/java/okhttp3/recipes/ParseResponseWithMoshi.java

    import com.squareup.moshi.Moshi;
    import java.io.IOException;
    import java.util.Map;
    import okhttp3.OkHttpClient;
    import okhttp3.Request;
    import okhttp3.Response;
    
    public final class ParseResponseWithMoshi {
      private final OkHttpClient client = new OkHttpClient();
      private final Moshi moshi = new Moshi.Builder().build();
      private final JsonAdapter<Gist> gistJsonAdapter = moshi.adapter(Gist.class);
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun May 22 01:29:42 UTC 2016
    - 1.8K bytes
    - Viewed (0)
Back to top