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

org.mnode.ical4j.json.JSEventBuilder Maven / Gradle / Ivy

There is a newer version: 0.1.5
Show newest version
package org.mnode.ical4j.json;

import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.node.ObjectNode;

import java.time.Duration;
import java.time.LocalDateTime;

public class JSEventBuilder extends AbstractJSCalendarBuilder {

    private LocalDateTime start;

    private Duration duration;

    private String status;

    JSEventBuilder uid(String uid) {
        this.uid = uid;
        return this;
    }

    JsonNode build() {
        ObjectMapper mapper = new ObjectMapper();

        ObjectNode jsEvent = mapper.createObjectNode();
        jsEvent.put("@type", "jsevent");
        return jsEvent;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy