//
// Copyright (C) 2017 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
namespace Google {
///
/// Status code for the SignIn operations.
///
/// All successful status codes are less than or equal to 0.
///
public enum GoogleSignInStatusCode {
/// The operation was successful, but used the device's cache.
///
SuccessCached = -1,
/// The operation was successful.
Success = 0,
/// The client attempted to call a method from an API that
/// failed to connect.
ApiNotConnected = 1,
/// The result was canceled either due to client disconnect
/// or cancel().
Canceled = 2,
/// A blocking call was interrupted while waiting and did not
/// run to completion.
Interrupted = 3,
/// The client attempted to connect to the service with an
/// invalid account name specified.
InvalidAccount = 4,
/// Timed out while awaiting the result.
Timeout = 5,
/// The application is misconfigured.
/// This error is not recoverable.
///
/// The developer should look at the logs after this to determine
/// more actionable information.
///
DeveloperError = 6,
/// An internal error occurred. Retrying should resolve the
/// problem.
InternalError = 7,
/// A network error occurred. Retrying should resolve the problem.
///
NetworkError = 8,
/// The operation failed with no more detailed information.
///
Error = 9,
}
} // namespace GoogleSignIn