preparing importer

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
2024-12-18 22:58:21 +01:00
parent fa580cae06
commit 2c76c61657
5 changed files with 22 additions and 6 deletions

View File

@@ -9,7 +9,6 @@ import java.util.Set;
* This is the central object of the calendar: An appointment
*/
public interface Appointment {
/**
* list of attachments associated with the appointment. may be used for flyers or images
* @return list of attachments
@@ -66,5 +65,4 @@ public interface Appointment {
* @return set of links
*/
Set<Link> urls();
}

View File

@@ -7,7 +7,6 @@ import java.net.URL;
* attachments may provide additional information about an appointment
*/
public interface Attachment {
/**
* the mime type of the attached document
* @return a mime type

View File

@@ -5,7 +5,6 @@ package de.srsoftware.cal.api;
* cartesian coordinates
*/
public interface Coords {
/**
* the longitude
* @return the longitude

View File

@@ -0,0 +1,21 @@
/* © SRSoftware 2024 */
package de.srsoftware.cal.api;
import java.util.List;
/**
* Instances of this class can be used to read Appointments from various sources
*/
public interface Importer {
/**
* Text descripbing this importer
* @return informational text
*/
String description();
/**
* get the list of appointments from the source associated with this importer
* @return a list of appointments
*/
List<Appointment> fetch();
}

View File

@@ -6,8 +6,7 @@ import java.net.URL;
/**
* Links are additional content that may be added to appointments
*/
public interface Link{
public interface Link {
/**
* some information about the target of the link
* @return descriptive text