Skip to content

Commit a17f946

Browse files
committed
Feature GitHub:11200 / GitHub:11199 (small refactoring after closure)
1 parent 4ec462e commit a17f946

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Project/Sources/Classes/GoogleCalendar.4dm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Function getCalendar($inID : Text) : Object
4242
// ----------------------------------------------------
4343

4444

45-
Function getCalendarList($inParameters : Object) : Object
45+
Function getCalendars($inParameters : Object) : Object
4646

4747
// GET https://www.googleapis.com/calendar/v3/users/me/calendarList
4848
Super._clearErrorStack()
@@ -54,8 +54,8 @@ Function getCalendarList($inParameters : Object) : Object
5454

5555
$urlParams:="users/me/calendarList"
5656

57-
If (Not(Value type($inParameters.maxResults)=Is undefined))
58-
$urlParams+=($delimiter+"maxResults="+Choose(Value type($inParameters.maxResults)=Is text; $inParameters.maxResults; String($inParameters.maxResults)))
57+
If (Not(Value type($inParameters.top)=Is undefined))
58+
$urlParams+=($delimiter+"maxResults="+Choose(Value type($inParameters.top)=Is text; $inParameters.top; String($inParameters.top)))
5959
$delimiter:="&"
6060
End if
6161
If (Not(Value type($inParameters.minAccessRole)=Is undefined))

Project/Sources/Classes/Office365Calendar.4dm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Function getCalendar($inID : Text; $inSelect : Text) : Object
4949
// ----------------------------------------------------
5050

5151

52-
Function getCalendarList($inParameters : Object) : Object
52+
Function getCalendars($inParameters : Object) : Object
5353

5454
Super._clearErrorStack()
5555
Super._throwErrors(False)

0 commit comments

Comments
 (0)