@@ -40,6 +40,14 @@ export class Feed {
4040 return this ;
4141 }
4242
43+ /**
44+ * Gets the current entries in the feed.
45+ * @returns The array of entries.
46+ */
47+ getEntries ( ) {
48+ return this . entries ;
49+ }
50+
4351 /**
4452 * Sets the updated date of the feed.
4553 * @param updated - The updated date in ISO 8601 format.
@@ -50,6 +58,14 @@ export class Feed {
5058 return this ;
5159 }
5260
61+ /**
62+ * Gets the updated date of the feed.
63+ * @returns The updated date in ISO 8601 format.
64+ */
65+ getUpdated ( ) {
66+ return this . options . updated ;
67+ }
68+
5369 /**
5470 * Sets the kind of the feed.
5571 * @param kind - The kind of the feed (e.g., 'navigation', 'acquisition').
@@ -60,6 +76,14 @@ export class Feed {
6076 return this ;
6177 }
6278
79+ /**
80+ * Gets the kind of the feed.
81+ * @returns The kind of the feed.
82+ */
83+ getKind ( ) {
84+ return this . options . kind ;
85+ }
86+
6387 /**
6488 * Sets the author of the feed.
6589 * @param author - The author of the feed.
@@ -70,6 +94,14 @@ export class Feed {
7094 return this ;
7195 }
7296
97+ /**
98+ * Gets the author of the feed.
99+ * @returns The author of the feed.
100+ */
101+ getAuthor ( ) {
102+ return this . options . author ;
103+ }
104+
73105 /**
74106 * Sets the language of the feed.
75107 * @param lang - The language of the feed. (e.g. 'en', 'de', etc.)
@@ -80,6 +112,14 @@ export class Feed {
80112 return this ;
81113 }
82114
115+ /**
116+ * Gets the language of the feed.
117+ * @returns The language of the feed.
118+ */
119+ getLang ( ) {
120+ return this . options . lang ;
121+ }
122+
83123 /**
84124 * Adds extra fields to the feed.
85125 * @param key - The key of the extra field.
@@ -120,6 +160,14 @@ export class Feed {
120160 return this ;
121161 }
122162
163+ /**
164+ * Gets the current links in the entry.
165+ * @returns The array of links.
166+ */
167+ getLinks ( ) {
168+ return this . options . links || [ ] ;
169+ }
170+
123171 /**
124172 * Adds a self link to the feed. This is a convenience method for adding a self link with the appropriate rel and type.
125173 * @param href - The URL of the feed.
0 commit comments