what-the-bank/sources/com/google/firebase/crashlytics/internal/model/AutoCrashlyticsReportEncode...

390 lines
25 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.firebase.crashlytics.internal.model;
import com.google.android.gms.measurement.api.AppMeasurementSdk;
import com.google.android.libraries.places.api.model.PlaceTypes;
import com.google.firebase.crashlytics.internal.model.CrashlyticsReport;
import com.google.firebase.encoders.ObjectEncoder;
import com.google.firebase.encoders.ObjectEncoderContext;
import com.google.firebase.encoders.config.Configurator;
import com.google.firebase.encoders.config.EncoderConfig;
import com.huawei.hms.support.api.entity.common.CommonConstant;
import java.io.IOException;
/* loaded from: classes.dex */
public final class AutoCrashlyticsReportEncoder implements Configurator {
public static final int CODEGEN_VERSION = 1;
public static final Configurator CONFIG = new AutoCrashlyticsReportEncoder();
private AutoCrashlyticsReportEncoder() {
}
@Override // com.google.firebase.encoders.config.Configurator
public final void configure(EncoderConfig<?> encoderConfig) {
encoderConfig.registerEncoder(CrashlyticsReport.class, CrashlyticsReportEncoder.INSTANCE);
encoderConfig.registerEncoder(AutoValue_CrashlyticsReport.class, CrashlyticsReportEncoder.INSTANCE);
encoderConfig.registerEncoder(CrashlyticsReport.Session.class, CrashlyticsReportSessionEncoder.INSTANCE);
encoderConfig.registerEncoder(AutoValue_CrashlyticsReport_Session.class, CrashlyticsReportSessionEncoder.INSTANCE);
encoderConfig.registerEncoder(CrashlyticsReport.Session.Application.class, CrashlyticsReportSessionApplicationEncoder.INSTANCE);
encoderConfig.registerEncoder(AutoValue_CrashlyticsReport_Session_Application.class, CrashlyticsReportSessionApplicationEncoder.INSTANCE);
encoderConfig.registerEncoder(CrashlyticsReport.Session.Application.Organization.class, CrashlyticsReportSessionApplicationOrganizationEncoder.INSTANCE);
encoderConfig.registerEncoder(AutoValue_CrashlyticsReport_Session_Application_Organization.class, CrashlyticsReportSessionApplicationOrganizationEncoder.INSTANCE);
encoderConfig.registerEncoder(CrashlyticsReport.Session.User.class, CrashlyticsReportSessionUserEncoder.INSTANCE);
encoderConfig.registerEncoder(AutoValue_CrashlyticsReport_Session_User.class, CrashlyticsReportSessionUserEncoder.INSTANCE);
encoderConfig.registerEncoder(CrashlyticsReport.Session.OperatingSystem.class, CrashlyticsReportSessionOperatingSystemEncoder.INSTANCE);
encoderConfig.registerEncoder(AutoValue_CrashlyticsReport_Session_OperatingSystem.class, CrashlyticsReportSessionOperatingSystemEncoder.INSTANCE);
encoderConfig.registerEncoder(CrashlyticsReport.Session.Device.class, CrashlyticsReportSessionDeviceEncoder.INSTANCE);
encoderConfig.registerEncoder(AutoValue_CrashlyticsReport_Session_Device.class, CrashlyticsReportSessionDeviceEncoder.INSTANCE);
encoderConfig.registerEncoder(CrashlyticsReport.Session.Event.class, CrashlyticsReportSessionEventEncoder.INSTANCE);
encoderConfig.registerEncoder(AutoValue_CrashlyticsReport_Session_Event.class, CrashlyticsReportSessionEventEncoder.INSTANCE);
encoderConfig.registerEncoder(CrashlyticsReport.Session.Event.Application.class, CrashlyticsReportSessionEventApplicationEncoder.INSTANCE);
encoderConfig.registerEncoder(AutoValue_CrashlyticsReport_Session_Event_Application.class, CrashlyticsReportSessionEventApplicationEncoder.INSTANCE);
encoderConfig.registerEncoder(CrashlyticsReport.Session.Event.Application.Execution.class, CrashlyticsReportSessionEventApplicationExecutionEncoder.INSTANCE);
encoderConfig.registerEncoder(AutoValue_CrashlyticsReport_Session_Event_Application_Execution.class, CrashlyticsReportSessionEventApplicationExecutionEncoder.INSTANCE);
encoderConfig.registerEncoder(CrashlyticsReport.Session.Event.Application.Execution.Thread.class, CrashlyticsReportSessionEventApplicationExecutionThreadEncoder.INSTANCE);
encoderConfig.registerEncoder(AutoValue_CrashlyticsReport_Session_Event_Application_Execution_Thread.class, CrashlyticsReportSessionEventApplicationExecutionThreadEncoder.INSTANCE);
encoderConfig.registerEncoder(CrashlyticsReport.Session.Event.Application.Execution.Thread.Frame.class, CrashlyticsReportSessionEventApplicationExecutionThreadFrameEncoder.INSTANCE);
encoderConfig.registerEncoder(AutoValue_CrashlyticsReport_Session_Event_Application_Execution_Thread_Frame.class, CrashlyticsReportSessionEventApplicationExecutionThreadFrameEncoder.INSTANCE);
encoderConfig.registerEncoder(CrashlyticsReport.Session.Event.Application.Execution.Exception.class, CrashlyticsReportSessionEventApplicationExecutionExceptionEncoder.INSTANCE);
encoderConfig.registerEncoder(AutoValue_CrashlyticsReport_Session_Event_Application_Execution_Exception.class, CrashlyticsReportSessionEventApplicationExecutionExceptionEncoder.INSTANCE);
encoderConfig.registerEncoder(CrashlyticsReport.Session.Event.Application.Execution.Signal.class, CrashlyticsReportSessionEventApplicationExecutionSignalEncoder.INSTANCE);
encoderConfig.registerEncoder(AutoValue_CrashlyticsReport_Session_Event_Application_Execution_Signal.class, CrashlyticsReportSessionEventApplicationExecutionSignalEncoder.INSTANCE);
encoderConfig.registerEncoder(CrashlyticsReport.Session.Event.Application.Execution.BinaryImage.class, CrashlyticsReportSessionEventApplicationExecutionBinaryImageEncoder.INSTANCE);
encoderConfig.registerEncoder(AutoValue_CrashlyticsReport_Session_Event_Application_Execution_BinaryImage.class, CrashlyticsReportSessionEventApplicationExecutionBinaryImageEncoder.INSTANCE);
encoderConfig.registerEncoder(CrashlyticsReport.CustomAttribute.class, CrashlyticsReportCustomAttributeEncoder.INSTANCE);
encoderConfig.registerEncoder(AutoValue_CrashlyticsReport_CustomAttribute.class, CrashlyticsReportCustomAttributeEncoder.INSTANCE);
encoderConfig.registerEncoder(CrashlyticsReport.Session.Event.Device.class, CrashlyticsReportSessionEventDeviceEncoder.INSTANCE);
encoderConfig.registerEncoder(AutoValue_CrashlyticsReport_Session_Event_Device.class, CrashlyticsReportSessionEventDeviceEncoder.INSTANCE);
encoderConfig.registerEncoder(CrashlyticsReport.Session.Event.Log.class, CrashlyticsReportSessionEventLogEncoder.INSTANCE);
encoderConfig.registerEncoder(AutoValue_CrashlyticsReport_Session_Event_Log.class, CrashlyticsReportSessionEventLogEncoder.INSTANCE);
encoderConfig.registerEncoder(CrashlyticsReport.FilesPayload.class, CrashlyticsReportFilesPayloadEncoder.INSTANCE);
encoderConfig.registerEncoder(AutoValue_CrashlyticsReport_FilesPayload.class, CrashlyticsReportFilesPayloadEncoder.INSTANCE);
encoderConfig.registerEncoder(CrashlyticsReport.FilesPayload.File.class, CrashlyticsReportFilesPayloadFileEncoder.INSTANCE);
encoderConfig.registerEncoder(AutoValue_CrashlyticsReport_FilesPayload_File.class, CrashlyticsReportFilesPayloadFileEncoder.INSTANCE);
}
/* loaded from: classes.dex */
static final class CrashlyticsReportEncoder implements ObjectEncoder<CrashlyticsReport> {
static final CrashlyticsReportEncoder INSTANCE = new CrashlyticsReportEncoder();
private CrashlyticsReportEncoder() {
}
@Override // com.google.firebase.encoders.Encoder
public final void encode(CrashlyticsReport crashlyticsReport, ObjectEncoderContext objectEncoderContext) throws IOException {
objectEncoderContext.add("sdkVersion", crashlyticsReport.getSdkVersion());
objectEncoderContext.add("gmpAppId", crashlyticsReport.getGmpAppId());
objectEncoderContext.add("platform", crashlyticsReport.getPlatform());
objectEncoderContext.add("installationUuid", crashlyticsReport.getInstallationUuid());
objectEncoderContext.add("buildVersion", crashlyticsReport.getBuildVersion());
objectEncoderContext.add("displayVersion", crashlyticsReport.getDisplayVersion());
objectEncoderContext.add("session", crashlyticsReport.getSession());
objectEncoderContext.add("ndkPayload", crashlyticsReport.getNdkPayload());
}
}
/* loaded from: classes.dex */
static final class CrashlyticsReportSessionEncoder implements ObjectEncoder<CrashlyticsReport.Session> {
static final CrashlyticsReportSessionEncoder INSTANCE = new CrashlyticsReportSessionEncoder();
private CrashlyticsReportSessionEncoder() {
}
@Override // com.google.firebase.encoders.Encoder
public final void encode(CrashlyticsReport.Session session, ObjectEncoderContext objectEncoderContext) throws IOException {
objectEncoderContext.add("generator", session.getGenerator());
objectEncoderContext.add("identifier", session.getIdentifierUtf8Bytes());
objectEncoderContext.add("startedAt", session.getStartedAt());
objectEncoderContext.add("endedAt", session.getEndedAt());
objectEncoderContext.add("crashed", session.isCrashed());
objectEncoderContext.add("app", session.getApp());
objectEncoderContext.add("user", session.getUser());
objectEncoderContext.add("os", session.getOs());
objectEncoderContext.add("device", session.getDevice());
objectEncoderContext.add("events", session.getEvents());
objectEncoderContext.add("generatorType", session.getGeneratorType());
}
}
/* loaded from: classes.dex */
static final class CrashlyticsReportSessionApplicationEncoder implements ObjectEncoder<CrashlyticsReport.Session.Application> {
static final CrashlyticsReportSessionApplicationEncoder INSTANCE = new CrashlyticsReportSessionApplicationEncoder();
private CrashlyticsReportSessionApplicationEncoder() {
}
@Override // com.google.firebase.encoders.Encoder
public final void encode(CrashlyticsReport.Session.Application application, ObjectEncoderContext objectEncoderContext) throws IOException {
objectEncoderContext.add("identifier", application.getIdentifier());
objectEncoderContext.add("version", application.getVersion());
objectEncoderContext.add("displayVersion", application.getDisplayVersion());
objectEncoderContext.add("organization", application.getOrganization());
objectEncoderContext.add("installationUuid", application.getInstallationUuid());
}
}
/* loaded from: classes.dex */
static final class CrashlyticsReportSessionApplicationOrganizationEncoder implements ObjectEncoder<CrashlyticsReport.Session.Application.Organization> {
static final CrashlyticsReportSessionApplicationOrganizationEncoder INSTANCE = new CrashlyticsReportSessionApplicationOrganizationEncoder();
private CrashlyticsReportSessionApplicationOrganizationEncoder() {
}
@Override // com.google.firebase.encoders.Encoder
public final void encode(CrashlyticsReport.Session.Application.Organization organization, ObjectEncoderContext objectEncoderContext) throws IOException {
objectEncoderContext.add("clsId", organization.getClsId());
}
}
/* loaded from: classes.dex */
static final class CrashlyticsReportSessionUserEncoder implements ObjectEncoder<CrashlyticsReport.Session.User> {
static final CrashlyticsReportSessionUserEncoder INSTANCE = new CrashlyticsReportSessionUserEncoder();
private CrashlyticsReportSessionUserEncoder() {
}
@Override // com.google.firebase.encoders.Encoder
public final void encode(CrashlyticsReport.Session.User user, ObjectEncoderContext objectEncoderContext) throws IOException {
objectEncoderContext.add("identifier", user.getIdentifier());
}
}
/* loaded from: classes.dex */
static final class CrashlyticsReportSessionOperatingSystemEncoder implements ObjectEncoder<CrashlyticsReport.Session.OperatingSystem> {
static final CrashlyticsReportSessionOperatingSystemEncoder INSTANCE = new CrashlyticsReportSessionOperatingSystemEncoder();
private CrashlyticsReportSessionOperatingSystemEncoder() {
}
@Override // com.google.firebase.encoders.Encoder
public final void encode(CrashlyticsReport.Session.OperatingSystem operatingSystem, ObjectEncoderContext objectEncoderContext) throws IOException {
objectEncoderContext.add("platform", operatingSystem.getPlatform());
objectEncoderContext.add("version", operatingSystem.getVersion());
objectEncoderContext.add("buildVersion", operatingSystem.getBuildVersion());
objectEncoderContext.add("jailbroken", operatingSystem.isJailbroken());
}
}
/* loaded from: classes.dex */
static final class CrashlyticsReportSessionDeviceEncoder implements ObjectEncoder<CrashlyticsReport.Session.Device> {
static final CrashlyticsReportSessionDeviceEncoder INSTANCE = new CrashlyticsReportSessionDeviceEncoder();
private CrashlyticsReportSessionDeviceEncoder() {
}
@Override // com.google.firebase.encoders.Encoder
public final void encode(CrashlyticsReport.Session.Device device, ObjectEncoderContext objectEncoderContext) throws IOException {
objectEncoderContext.add("arch", device.getArch());
objectEncoderContext.add("model", device.getModel());
objectEncoderContext.add("cores", device.getCores());
objectEncoderContext.add("ram", device.getRam());
objectEncoderContext.add("diskSpace", device.getDiskSpace());
objectEncoderContext.add("simulator", device.isSimulator());
objectEncoderContext.add(CommonConstant.ReqAccessTokenParam.STATE_LABEL, device.getState());
objectEncoderContext.add("manufacturer", device.getManufacturer());
objectEncoderContext.add("modelClass", device.getModelClass());
}
}
/* loaded from: classes.dex */
static final class CrashlyticsReportSessionEventEncoder implements ObjectEncoder<CrashlyticsReport.Session.Event> {
static final CrashlyticsReportSessionEventEncoder INSTANCE = new CrashlyticsReportSessionEventEncoder();
private CrashlyticsReportSessionEventEncoder() {
}
@Override // com.google.firebase.encoders.Encoder
public final void encode(CrashlyticsReport.Session.Event event, ObjectEncoderContext objectEncoderContext) throws IOException {
objectEncoderContext.add("timestamp", event.getTimestamp());
objectEncoderContext.add("type", event.getType());
objectEncoderContext.add("app", event.getApp());
objectEncoderContext.add("device", event.getDevice());
objectEncoderContext.add("log", event.getLog());
}
}
/* loaded from: classes.dex */
static final class CrashlyticsReportSessionEventApplicationEncoder implements ObjectEncoder<CrashlyticsReport.Session.Event.Application> {
static final CrashlyticsReportSessionEventApplicationEncoder INSTANCE = new CrashlyticsReportSessionEventApplicationEncoder();
private CrashlyticsReportSessionEventApplicationEncoder() {
}
@Override // com.google.firebase.encoders.Encoder
public final void encode(CrashlyticsReport.Session.Event.Application application, ObjectEncoderContext objectEncoderContext) throws IOException {
objectEncoderContext.add("execution", application.getExecution());
objectEncoderContext.add("customAttributes", application.getCustomAttributes());
objectEncoderContext.add("background", application.getBackground());
objectEncoderContext.add("uiOrientation", application.getUiOrientation());
}
}
/* loaded from: classes.dex */
static final class CrashlyticsReportSessionEventApplicationExecutionEncoder implements ObjectEncoder<CrashlyticsReport.Session.Event.Application.Execution> {
static final CrashlyticsReportSessionEventApplicationExecutionEncoder INSTANCE = new CrashlyticsReportSessionEventApplicationExecutionEncoder();
private CrashlyticsReportSessionEventApplicationExecutionEncoder() {
}
@Override // com.google.firebase.encoders.Encoder
public final void encode(CrashlyticsReport.Session.Event.Application.Execution execution, ObjectEncoderContext objectEncoderContext) throws IOException {
objectEncoderContext.add("threads", execution.getThreads());
objectEncoderContext.add("exception", execution.getException());
objectEncoderContext.add("signal", execution.getSignal());
objectEncoderContext.add("binaries", execution.getBinaries());
}
}
/* loaded from: classes.dex */
static final class CrashlyticsReportSessionEventApplicationExecutionThreadEncoder implements ObjectEncoder<CrashlyticsReport.Session.Event.Application.Execution.Thread> {
static final CrashlyticsReportSessionEventApplicationExecutionThreadEncoder INSTANCE = new CrashlyticsReportSessionEventApplicationExecutionThreadEncoder();
private CrashlyticsReportSessionEventApplicationExecutionThreadEncoder() {
}
@Override // com.google.firebase.encoders.Encoder
public final void encode(CrashlyticsReport.Session.Event.Application.Execution.Thread thread, ObjectEncoderContext objectEncoderContext) throws IOException {
objectEncoderContext.add("name", thread.getName());
objectEncoderContext.add("importance", thread.getImportance());
objectEncoderContext.add("frames", thread.getFrames());
}
}
/* loaded from: classes.dex */
static final class CrashlyticsReportSessionEventApplicationExecutionThreadFrameEncoder implements ObjectEncoder<CrashlyticsReport.Session.Event.Application.Execution.Thread.Frame> {
static final CrashlyticsReportSessionEventApplicationExecutionThreadFrameEncoder INSTANCE = new CrashlyticsReportSessionEventApplicationExecutionThreadFrameEncoder();
private CrashlyticsReportSessionEventApplicationExecutionThreadFrameEncoder() {
}
@Override // com.google.firebase.encoders.Encoder
public final void encode(CrashlyticsReport.Session.Event.Application.Execution.Thread.Frame frame, ObjectEncoderContext objectEncoderContext) throws IOException {
objectEncoderContext.add("pc", frame.getPc());
objectEncoderContext.add("symbol", frame.getSymbol());
objectEncoderContext.add("file", frame.getFile());
objectEncoderContext.add("offset", frame.getOffset());
objectEncoderContext.add("importance", frame.getImportance());
}
}
/* loaded from: classes.dex */
static final class CrashlyticsReportSessionEventApplicationExecutionExceptionEncoder implements ObjectEncoder<CrashlyticsReport.Session.Event.Application.Execution.Exception> {
static final CrashlyticsReportSessionEventApplicationExecutionExceptionEncoder INSTANCE = new CrashlyticsReportSessionEventApplicationExecutionExceptionEncoder();
private CrashlyticsReportSessionEventApplicationExecutionExceptionEncoder() {
}
@Override // com.google.firebase.encoders.Encoder
public final void encode(CrashlyticsReport.Session.Event.Application.Execution.Exception exception, ObjectEncoderContext objectEncoderContext) throws IOException {
objectEncoderContext.add("type", exception.getType());
objectEncoderContext.add("reason", exception.getReason());
objectEncoderContext.add("frames", exception.getFrames());
objectEncoderContext.add("causedBy", exception.getCausedBy());
objectEncoderContext.add("overflowCount", exception.getOverflowCount());
}
}
/* loaded from: classes.dex */
static final class CrashlyticsReportSessionEventApplicationExecutionSignalEncoder implements ObjectEncoder<CrashlyticsReport.Session.Event.Application.Execution.Signal> {
static final CrashlyticsReportSessionEventApplicationExecutionSignalEncoder INSTANCE = new CrashlyticsReportSessionEventApplicationExecutionSignalEncoder();
private CrashlyticsReportSessionEventApplicationExecutionSignalEncoder() {
}
@Override // com.google.firebase.encoders.Encoder
public final void encode(CrashlyticsReport.Session.Event.Application.Execution.Signal signal, ObjectEncoderContext objectEncoderContext) throws IOException {
objectEncoderContext.add("name", signal.getName());
objectEncoderContext.add("code", signal.getCode());
objectEncoderContext.add(PlaceTypes.ADDRESS, signal.getAddress());
}
}
/* loaded from: classes.dex */
static final class CrashlyticsReportSessionEventApplicationExecutionBinaryImageEncoder implements ObjectEncoder<CrashlyticsReport.Session.Event.Application.Execution.BinaryImage> {
static final CrashlyticsReportSessionEventApplicationExecutionBinaryImageEncoder INSTANCE = new CrashlyticsReportSessionEventApplicationExecutionBinaryImageEncoder();
private CrashlyticsReportSessionEventApplicationExecutionBinaryImageEncoder() {
}
@Override // com.google.firebase.encoders.Encoder
public final void encode(CrashlyticsReport.Session.Event.Application.Execution.BinaryImage binaryImage, ObjectEncoderContext objectEncoderContext) throws IOException {
objectEncoderContext.add("baseAddress", binaryImage.getBaseAddress());
objectEncoderContext.add("size", binaryImage.getSize());
objectEncoderContext.add("name", binaryImage.getName());
objectEncoderContext.add("uuid", binaryImage.getUuidUtf8Bytes());
}
}
/* loaded from: classes.dex */
static final class CrashlyticsReportCustomAttributeEncoder implements ObjectEncoder<CrashlyticsReport.CustomAttribute> {
static final CrashlyticsReportCustomAttributeEncoder INSTANCE = new CrashlyticsReportCustomAttributeEncoder();
private CrashlyticsReportCustomAttributeEncoder() {
}
@Override // com.google.firebase.encoders.Encoder
public final void encode(CrashlyticsReport.CustomAttribute customAttribute, ObjectEncoderContext objectEncoderContext) throws IOException {
objectEncoderContext.add("key", customAttribute.getKey());
objectEncoderContext.add(AppMeasurementSdk.ConditionalUserProperty.VALUE, customAttribute.getValue());
}
}
/* loaded from: classes.dex */
static final class CrashlyticsReportSessionEventDeviceEncoder implements ObjectEncoder<CrashlyticsReport.Session.Event.Device> {
static final CrashlyticsReportSessionEventDeviceEncoder INSTANCE = new CrashlyticsReportSessionEventDeviceEncoder();
private CrashlyticsReportSessionEventDeviceEncoder() {
}
@Override // com.google.firebase.encoders.Encoder
public final void encode(CrashlyticsReport.Session.Event.Device device, ObjectEncoderContext objectEncoderContext) throws IOException {
objectEncoderContext.add("batteryLevel", device.getBatteryLevel());
objectEncoderContext.add("batteryVelocity", device.getBatteryVelocity());
objectEncoderContext.add("proximityOn", device.isProximityOn());
objectEncoderContext.add("orientation", device.getOrientation());
objectEncoderContext.add("ramUsed", device.getRamUsed());
objectEncoderContext.add("diskUsed", device.getDiskUsed());
}
}
/* loaded from: classes.dex */
static final class CrashlyticsReportSessionEventLogEncoder implements ObjectEncoder<CrashlyticsReport.Session.Event.Log> {
static final CrashlyticsReportSessionEventLogEncoder INSTANCE = new CrashlyticsReportSessionEventLogEncoder();
private CrashlyticsReportSessionEventLogEncoder() {
}
@Override // com.google.firebase.encoders.Encoder
public final void encode(CrashlyticsReport.Session.Event.Log log, ObjectEncoderContext objectEncoderContext) throws IOException {
objectEncoderContext.add("content", log.getContent());
}
}
/* loaded from: classes.dex */
static final class CrashlyticsReportFilesPayloadEncoder implements ObjectEncoder<CrashlyticsReport.FilesPayload> {
static final CrashlyticsReportFilesPayloadEncoder INSTANCE = new CrashlyticsReportFilesPayloadEncoder();
private CrashlyticsReportFilesPayloadEncoder() {
}
@Override // com.google.firebase.encoders.Encoder
public final void encode(CrashlyticsReport.FilesPayload filesPayload, ObjectEncoderContext objectEncoderContext) throws IOException {
objectEncoderContext.add("files", filesPayload.getFiles());
objectEncoderContext.add("orgId", filesPayload.getOrgId());
}
}
/* loaded from: classes.dex */
static final class CrashlyticsReportFilesPayloadFileEncoder implements ObjectEncoder<CrashlyticsReport.FilesPayload.File> {
static final CrashlyticsReportFilesPayloadFileEncoder INSTANCE = new CrashlyticsReportFilesPayloadFileEncoder();
private CrashlyticsReportFilesPayloadFileEncoder() {
}
@Override // com.google.firebase.encoders.Encoder
public final void encode(CrashlyticsReport.FilesPayload.File file, ObjectEncoderContext objectEncoderContext) throws IOException {
objectEncoderContext.add("filename", file.getFilename());
objectEncoderContext.add("contents", file.getContents());
}
}
}