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

com.dingtalk.open.app.api.graph.GraphAPIMessage Maven / Gradle / Ivy

There is a newer version: 1.3.7
Show newest version
package com.dingtalk.open.app.api.graph;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.Map;

/**
 * @author feiyin
 * @date 2023/9/22
 */
class GraphAPIMessage {
    private Map headers;
    private String body;

    public Map getHeaders() {
        return headers;
    }

    public void setHeaders(Map headers) {
        this.headers = headers;
    }

    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }

    @JSONField(serialize = false)
    public String getHeader(String name) {
        if (name == null || headers == null || headers.isEmpty()) {
            return null;
        }
        return headers.get(name);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy