com.urbanairship.api.reports.parse.PlatformCountsReader Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-client Show documentation
Show all versions of java-client Show documentation
The Urban Airship Java client library
/*
* Copyright (c) 2013-2016. Urban Airship and Contributors
*/
package com.urbanairship.api.reports.parse;
import com.urbanairship.api.common.parse.APIParsingException;
import com.urbanairship.api.common.parse.DateFormats;
import com.urbanairship.api.common.parse.JsonObjectReader;
import com.urbanairship.api.reports.model.PerPushCounts;
import com.urbanairship.api.reports.model.PlatformCounts;
import com.urbanairship.api.reports.model.PlatformType;
import com.urbanairship.api.reports.model.RichPerPushCounts;
import org.codehaus.jackson.JsonParser;
import org.codehaus.jackson.type.TypeReference;
import java.io.IOException;
import java.util.Map;
public class PlatformCountsReader implements JsonObjectReader {
private final PlatformCounts.Builder builder;
public PlatformCountsReader() {
this.builder = PlatformCounts.newBuilder();
}
public void readPlatformCounts(JsonParser jsonParser) throws IOException {
Map obj = jsonParser.readValueAs(new TypeReference
© 2015 - 2025 Weber Informatics LLC | Privacy Policy