GooglePlayGames.BasicApi.AuthScopeExtensions

Extensions for the AuthScope enum.

Summary

These extensions are used to converting between the AuthScope enum and its string representation.

Public static functions

FromValue(string value)
Returns the AuthScope enum value corresponding to the provided string.
GetValue(this AuthScope authScope)
string
Returns the standard string representation of this OAuth 2.0 scope.

Public static functions

FromValue

AuthScope FromValue(
  string value
)

Returns the AuthScope enum value corresponding to the provided string.

Details
Parameters
value
The string value used to represent the scope.
Exceptions
ArgumentException
If the provided string is not a valid AuthScope.
Returns
The AuthScope enum value corresponding to the provided string.

GetValue

string GetValue(
  this AuthScope authScope
)

Returns the standard string representation of this OAuth 2.0 scope.

Details
Parameters
authScope
The AuthScope enum value.
Exceptions
ArgumentException
If the provided AuthScope is not valid.
Returns
The string value used to represent this scope.