This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"type" : "record", | |
"name" : "MemberProfile", | |
"namespace" : "com.linkedin.pegasus", | |
"doc" : "Represents a member profile", | |
"fields" : [ | |
{ "name" : "firstName", "type" : "String" }, | |
{ "name" : "lastName", "type" : "String", "optional" : "true" }, | |
{ "name" : "companyName", "type" : "String", "optional" : "true" }, | |
{ "name" : "age", "type" : "int", "optional" : "true" } ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public MemberProfile build(@android.support.annotation.NonNull JsonParser jsonParser) throws java.io.IOException { | |
if (jsonParser.getCurrentToken() == null) { | |
jsonParser.nextToken(); | |
} | |
if (jsonParser.getCurrentToken()!= JsonToken.START_OBJECT) { | |
jsonParser.skipChildren(); | |
throw new java.io.IOException("Malformed JSON. Failed to find '{' when building com.linkedin.android.pegasus.MemberProfile"); | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package android.support.design.widget; | |
import android.content.Context; | |
import android.support.annotation.NonNull; | |
import android.support.annotation.Nullable; | |
import android.support.v4.view.NestedScrollingChildHelper; | |
import android.util.AttributeSet; | |
import android.view.View; | |
/** |