// // 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 { using System; /// Information for the authenticated user. public class GoogleSignInUser { /// Server AuthCode to be exchanged for an auth token. /// null if not requested, or if there was an error. public string AuthCode { get; internal set; } /// Email address. /// null if not requested, or if there was an error. public string Email { get; internal set; } /// Id token. /// null if not requested, or if there was an error. public string IdToken { get; internal set; } /// Display Name. public string DisplayName { get; internal set; } /// Given Name. public string GivenName { get; internal set; } /// Family Name. public string FamilyName { get; internal set; } /// Profile photo /// Can be null if the profile is not requested, /// or none set. public Uri ImageUrl { get; internal set; } /// User ID public string UserId { get; internal set; } } }