preparing importer
Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
@@ -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();
|
||||
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -5,7 +5,6 @@ package de.srsoftware.cal.api;
|
||||
* cartesian coordinates
|
||||
*/
|
||||
public interface Coords {
|
||||
|
||||
/**
|
||||
* the longitude
|
||||
* @return the longitude
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user