All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.viber.bot.api.ApiResponse Maven / Gradle / Ivy

Go to download

Use this library to communicate with the Viber API to develop a bot for https://developers.viber.com/.

There is a newer version: 1.0.11
Show newest version
package com.viber.bot.api;

import com.google.common.base.MoreObjects;
import com.google.common.collect.ForwardingMap;

import javax.annotation.Nullable;
import java.util.Collections;
import java.util.Map;

/**
 * Simple Map(String, Object) wrapper class.
 */
public class ApiResponse extends ForwardingMap {
    private final Map map;

    ApiResponse(final @Nullable Map delegate) {
        this.map = Collections.unmodifiableMap(MoreObjects.firstNonNull(delegate, Collections.emptyMap()));
    }

    @Override
    protected Map delegate() {
        return map;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy