finished importer for Rosenkeller
Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
@@ -4,18 +4,9 @@ package de.srsoftware.cal.api;
|
||||
import java.net.URL;
|
||||
|
||||
/**
|
||||
* attachments may provide additional information about an appointment
|
||||
* an attachment for appointments
|
||||
* @param url the URL of the attached document
|
||||
* @param mime the mime type of the attached document
|
||||
*/
|
||||
public interface Attachment {
|
||||
/**
|
||||
* the mime type of the attached document
|
||||
* @return a mime type
|
||||
*/
|
||||
String mime();
|
||||
|
||||
/**
|
||||
* the URL of the attached document
|
||||
* @return the attachment URL
|
||||
*/
|
||||
URL url();
|
||||
public record Attachment(URL url, String mime) {
|
||||
}
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
/* © SRSoftware 2024 */
|
||||
package de.srsoftware.cal.api;
|
||||
|
||||
import de.srsoftware.tools.Result;
|
||||
import java.io.IOException;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
@@ -17,7 +16,9 @@ public interface Importer {
|
||||
|
||||
/**
|
||||
* get the list of appointments from the source associated with this importer
|
||||
*
|
||||
* @return a list of appointments
|
||||
* @throws IOException if there is an IOException
|
||||
*/
|
||||
Stream<Result<Appointment>> fetch() throws IOException;
|
||||
Stream<Appointment> fetch() throws IOException;
|
||||
}
|
||||
|
||||
@@ -5,17 +5,8 @@ import java.net.URL;
|
||||
|
||||
/**
|
||||
* Links are additional content that may be added to appointments
|
||||
* @param url the URL of the link
|
||||
* @param desciption some information about the target of the link
|
||||
*/
|
||||
public interface Link {
|
||||
/**
|
||||
* some information about the target of the link
|
||||
* @return descriptive text
|
||||
*/
|
||||
String description();
|
||||
|
||||
/**
|
||||
* the URL of the link
|
||||
* @return the link`s URL
|
||||
*/
|
||||
URL url();
|
||||
public record Link(URL url, String desciption) {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user