Skip to content

Commit

Permalink
Revert "GitHub:9479 ([Google] User information)"
Browse files Browse the repository at this point in the history
This reverts commit 65fd5c5.
  • Loading branch information
yannicktrinh committed Oct 2, 2024
1 parent 140b074 commit 91d50cc
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 132 deletions.
13 changes: 1 addition & 12 deletions Project/Sources/Classes/Google.4dm
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Class constructor($inProvider : cs.OAuth2Provider; $inParameters : Object)

This._internals:={_oAuth2Provider: $inProvider; _parameters: $inParameters; _mail: Null; _user: Null}
This._internals:={_oAuth2Provider: $inProvider; _mail: Null; _parameters: $inParameters}


// Mark: - [Public]
Expand All @@ -13,14 +13,3 @@ Function get mail : cs.GoogleMail
This._internals._mail:=cs.GoogleMail.new(This._internals._oAuth2Provider; This._internals._parameters)
End if
return This._internals._mail


// ----------------------------------------------------


Function get user : cs.GoogleUser

If (This._internals._user=Null)
This._internals._user:=cs.GoogleUser.new(This._internals._oAuth2Provider)
End if
return This._internals._user
10 changes: 5 additions & 5 deletions Project/Sources/Classes/GoogleMail.4dm
Original file line number Diff line number Diff line change
Expand Up @@ -390,9 +390,9 @@ Function getLabelList($inParameters : Object) : Object
$labelIds:=$response.labels.extract("id")
End if
$bSendBatchRequest:=$bWithCounters
Else

else

$bSendBatchRequest:=True
End if

Expand All @@ -409,7 +409,7 @@ Function getLabelList($inParameters : Object) : Object
var $result : Collection:=$batchRequest.sendRequestAndWaitResponse()

If (($result=Null) || ($batchRequest._getLastError()#Null))

var $stack : Collection:=$batchRequest._getErrorStack().reverse()
var $error : Object

Expand All @@ -420,7 +420,7 @@ Function getLabelList($inParameters : Object) : Object
End if

If (Not($bWithCounters))

var $label : Object
For each ($label; $result)
OB REMOVE($label; "threadsTotal")
Expand Down
100 changes: 0 additions & 100 deletions Project/Sources/Classes/GoogleUser.4dm

This file was deleted.

15 changes: 0 additions & 15 deletions Project/Sources/Classes/GoogleUserList.4dm

This file was deleted.

0 comments on commit 91d50cc

Please sign in to comment.