Method | Description | |
---|---|---|
AddAccount ( |
Stores a new set of user credentials in the credentials store.
|
|
DeleteAccount ( |
Deletes the account from the store. The account must exist in the store or it will throw.
|
|
GetAccount ( string accountName ) : |
Returns the account given the account name.
|
|
ResetCredentials ( string accountName, string projectId ) : void |
Resets the credentials state to the account with the given accountName and the given projectId. The Reset event will be raised to notify listeners on this. If accountName cannot be found in the store then the credentials will be reset to empty.
|
|
UpdateCurrentProject ( Project project ) : void |
Updates the current project data from the given project.
|
Method | Description | |
---|---|---|
AtomicFileRead ( string path ) : string | ||
AtomicFileWrite ( string path, string contents ) : void | ||
CredentialsStore ( ) : Google.Apis.Auth.OAuth2 | ||
EnsureCredentialsRootExist ( ) : void | ||
GetCredentialsStoreRoot ( ) : string | ||
GetFileName ( |
||
GetUserAccountPath ( string accountName ) : string | ||
LoadAccounts ( ) : StoredUserAccount>.Dictionary |
||
LoadDefaultCredentials ( ) : DefaultCredentials | ||
LoadUserAccount ( string path ) : |
||
SaveUserAccount ( |
||
SaveUserAccount ( |
||
UpdateDefaultCredentials ( ) : void |
public AddAccount ( |
||
userAccount | ||
return | void |
public DeleteAccount ( |
||
account | The accound to delete. | |
return | void |
public GetAccount ( string accountName ) : |
||
accountName | string | The name to look. |
return |
public ResetCredentials ( string accountName, string projectId ) : void | ||
accountName | string | The name of the account to make current. |
projectId | string | The projectId to make current. |
return | void |
public UpdateCurrentProject ( Project project ) : void | ||
project | Project | |
return | void |