Bez popisu

FIRSignInWithGameCenterResponse.h 2.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /*
  2. * Copyright 2018 Google
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. #import <Foundation/Foundation.h>
  17. #import "FIRAuthRPCResponse.h"
  18. NS_ASSUME_NONNULL_BEGIN
  19. @interface FIRSignInWithGameCenterResponse : NSObject <FIRAuthRPCResponse>
  20. /** @property IDToken
  21. @breif Either an authorization code suitable for performing an STS token exchange, or the access
  22. token from Secure Token Service, depending on whether @c returnSecureToken is set on the
  23. request.
  24. */
  25. @property(nonatomic, copy, readonly, nullable) NSString *IDToken;
  26. /** @property refreshToken
  27. @breif @breif The refresh token from Secure Token Service.
  28. */
  29. @property(nonatomic, copy, readonly, nullable) NSString *refreshToken;
  30. /** @property localID
  31. @breif @breif The Firebase Auth user ID.
  32. */
  33. @property(nonatomic, copy, readonly, nullable) NSString *localID;
  34. /** @property playerID
  35. @breif @breif The verified player ID.
  36. */
  37. @property(nonatomic, copy, readonly, nullable) NSString *playerID;
  38. /** @property approximateExpirationDate
  39. @breif The approximate expiration date of the access token.
  40. */
  41. @property(nonatomic, copy, readonly, nullable) NSDate *approximateExpirationDate;
  42. /** @property isNewUser
  43. @breif Flag indicating that the user signing in is a new user and not a returning user.
  44. */
  45. @property(nonatomic, assign) BOOL isNewUser;
  46. /** @property displayName
  47. @breif The user's Game Center display name.
  48. */
  49. @property(nonatomic, copy, readonly, nullable) NSString *displayName;
  50. @end
  51. NS_ASSUME_NONNULL_END