user_info.h 908 B

123456789101112131415161718192021222324252627
  1. // Copyright 2017 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef REMOTING_IOS_DOMAIN_USER_INFO_H_
  5. #define REMOTING_IOS_DOMAIN_USER_INFO_H_
  6. #import <Foundation/Foundation.h>
  7. // A detail record for a Remoting User.
  8. @interface UserInfo : NSObject
  9. @property(nonatomic, copy) NSString* userId;
  10. @property(nonatomic, copy) NSString* userFullName;
  11. @property(nonatomic, copy) NSString* userEmail;
  12. // TODO(yuweih): SSO doesn't use a refresh token and it should not be used to
  13. // decide whether the UserInfo is authenticated.
  14. @property(nonatomic, copy) NSString* refreshToken;
  15. // This returns the authenticated state of the this user info object.
  16. - (BOOL)isAuthenticated;
  17. // Compare two |UserInfo| objects.
  18. - (NSComparisonResult)compare:(UserInfo*)user;
  19. @end
  20. #endif // REMOTING_IOS_DOMAIN_USER_INFO_H_