MCPcopy Create free account
hub / github.com/dropbox/dbxcli / jsonAccountFromBase

Function jsonAccountFromBase

cmd/account.go:221–231  ·  view source on GitHub ↗
(accountType string, account users.Account)

Source from the content-addressed store, hash-verified

219}
220
221func jsonAccountFromBase(accountType string, account users.Account) jsonAccount {
222 return jsonAccount{
223 Type: accountType,
224 AccountID: account.AccountId,
225 Name: jsonAccountNameFromDropbox(account.Name),
226 Email: account.Email,
227 EmailVerified: account.EmailVerified,
228 Disabled: account.Disabled,
229 ProfilePhotoURL: account.ProfilePhotoUrl,
230 }
231}
232
233func jsonAccountNameFromDropbox(name *users.Name) *jsonAccountName {
234 if name == nil {

Callers 2

jsonFullAccountFunction · 0.85
jsonBasicAccountFunction · 0.85

Calls 1

Tested by

no test coverage detected