mirror of
https://github.com/DreamExposure/DisCal-Discord-Bot.git
synced 2026-01-25 05:18:27 -06:00
Change event.summary to event.name in the API
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user