Today's Menu  Portugal
journal and plan nutrition
GIDGoogleUser.h
Go to the documentation of this file.
1 /*
2  * GIDGoogleUser.h
3  * Google Sign-In iOS SDK
4  *
5  * Copyright 2014 Google Inc.
6  *
7  * Use of this SDK is subject to the Google APIs Terms of Service:
8  * https://developers.google.com/terms/
9  */
10 
11 #import <Foundation/Foundation.h>
12 
13 @class GIDAuthentication;
14 @class GIDProfileData;
15 
16 // This class represents a user account.
17 @interface GIDGoogleUser : NSObject <NSCoding>
18 
19 // The Google user ID.
20 @property(nonatomic, readonly) NSString *userID;
21 
22 // Representation of the Basic profile data. It is only available if |shouldFetchBasicProfile|
23 // is set and either |signInWithUser| or |SignIn| has been completed successfully.
24 @property(nonatomic, readonly) GIDProfileData *profile;
25 
26 // The authentication object for the user.
27 @property(nonatomic, readonly) GIDAuthentication *authentication;
28 
29 // The API scopes requested by the app in an array of |NSString|s.
30 @property(nonatomic, readonly) NSArray *accessibleScopes;
31 
32 // For Google Apps hosted accounts, the domain of the user.
33 @property(nonatomic, readonly) NSString *hostedDomain;
34 
35 // An OAuth2 authorization code for the home server.
36 @property(nonatomic, readonly) NSString *serverAuthCode;
37 
38 @end
GIDProfileData * profile
Definition: GIDGoogleUser.h:24
NSString * userID
Definition: GIDGoogleUser.h:20
NSArray * accessibleScopes
Definition: GIDGoogleUser.h:30
NSString * hostedDomain
Definition: GIDGoogleUser.h:33
GIDAuthentication * authentication
Definition: GIDGoogleUser.h:27
NSString * serverAuthCode
Definition: GIDGoogleUser.h:36