Change event.summary to event.name in the API

This commit is contained in:
NovaFox161
2021-05-03 19:41:02 -05:00
committed by Nova Fox
parent 43ef4ae11f
commit af0a19ee5f
2 changed files with 22 additions and 22 deletions

View File

@@ -368,7 +368,7 @@
"event_id": "e7gqkup5l8",
"epoch_start": 1521732600000,
"epoch_end": 1521732600000,
"summary": "Weekly study group",
"name": "Weekly study group",
"description": "Time to study!",
"location": "Building A, Room 205",
"is_parent": false,
@@ -445,9 +445,9 @@
<td>The time the event ends at</td>
</tr>
<tr>
<td>summary</td>
<td>name</td>
<td>String</td>
<td>The summary/name of the event. *May not always be included*</td>
<td>The name of the event. *May not always be included*</td>
</tr>
<tr>
<td>description</td>
@@ -543,7 +543,7 @@
"event_id": "e7gqkup5l8",
"epoch_start": 1521732600000,
"epoch_end": 1521732600000,
"summary": "Weekly study group",
"name": "Weekly study group",
"description": "Time to study!",
"location": "Building A, Room 205",
"is_parent": false,
@@ -632,9 +632,9 @@
<td>The time the event ends at</td>
</tr>
<tr>
<td>events.summary</td>
<td>events.name</td>
<td>String</td>
<td>The summary/name of the event. *May not always be included*</td>
<td>The name of the event. *May not always be included*</td>
</tr>
<tr>
<td>events.description</td>
@@ -730,7 +730,7 @@
"event_id": "e7gqkup5l8",
"epoch_start": 1521732600000,
"epoch_end": 1521732600000,
"summary": "Weekly study group",
"name": "Weekly study group",
"description": "Time to study!",
"location": "Building A, Room 205",
"is_parent": false,
@@ -813,7 +813,7 @@
<td>The time the event ends at</td>
</tr>
<tr>
<td>events.summary</td>
<td>events.name</td>
<td>String</td>
<td>The summary/name of the event. *May not always be included*</td>
</tr>
@@ -911,7 +911,7 @@
"event_id": "e7gqkup5l8",
"epoch_start": 1521732600000,
"epoch_end": 1521732600000,
"summary": "Weekly study group",
"name": "Weekly study group",
"description": "Time to study!",
"location": "Building A, Room 205",
"is_parent": false,
@@ -1000,9 +1000,9 @@
<td>The time the event ends at</td>
</tr>
<tr>
<td>events.summary</td>
<td>events.name</td>
<td>String</td>
<td>The summary/name of the event. *May not always be included*</td>
<td>The name of the event. *May not always be included*</td>
</tr>
<tr>
<td>events.description</td>
@@ -1096,7 +1096,7 @@
"event_id": "e7gqkup5l8",
"epoch_start": 1521732600000,
"epoch_end": 1521732600000,
"summary": "Weekly study group",
"name": "Weekly study group",
"description": "Time to study!",
"location": "Building A, Room 205",
"is_parent": false,
@@ -1173,9 +1173,9 @@
<td>The time the event ends at</td>
</tr>
<tr>
<td>events.summary</td>
<td>events.name</td>
<td>String</td>
<td>The summary/name of the event. *May not always be included*</td>
<td>The name of the event. *May not always be included*</td>
</tr>
<tr>
<td>events.description</td>
@@ -1257,7 +1257,7 @@
"event_id": "e7gqkup5l8",
"epoch_start": 1521732600000,
"epoch_end": 1521732600000,
"summary": "Weekly study group",
"name": "Weekly study group",
"description": "Time to study!",
"location": "Building A, Room 205",
"is_parent": false,
@@ -1320,7 +1320,7 @@
<td>The time the event ends at</td>
</tr>
<tr>
<td>summary</td>
<td>name</td>
<td>String</td>
<td>The summary/name of the event. *Optional*</td>
</tr>
@@ -1423,7 +1423,7 @@
"calendar_number": 1,
"event_id": "e7gqkup5l8",
"epoch_end": 1521732600000,
"summary": "Weekly study group",
"name": "Weekly study group",
"location": "Building A, Room 205",
"is_parent": false,
"color": "RED",
@@ -1484,9 +1484,9 @@
<td>The time the event ends at</td>
</tr>
<tr>
<td>summary</td>
<td>name</td>
<td>String</td>
<td>The summary/name of the event. *Optional*</td>
<td>The name of the event. *Optional*</td>
</tr>
<tr>
<td>description</td>

View File

@@ -161,7 +161,7 @@ export class Event {
};
if (this.summary.length > 0) {
json.summary = this.summary;
json.name = this.summary;
}
if (this.description.length) {
json.description = this.description;
@@ -185,8 +185,8 @@ export class Event {
this.epochStart = json.epoch_start;
this.epochEnd = json.epoch_end;
if (json.hasOwnProperty("summary")) {
this.summary = json.summary;
if (json.hasOwnProperty("name")) {
this.summary = json.name;
}
if (json.hasOwnProperty("description")) {
this.description = json.description;