private void NavigateToPush(AuthenticatedUser user)
 {
     Intent push = new Intent (this, typeof(PushActivity));
     push.PutExtra ("displayName", user.FirstName);
     push.PutExtra ("userId", user.ID);
     StartActivity (push);
 }
示例#2
0
        public async Task AuthenticateUserAsync(string analyticsToken)
        {
            var result = await this.client.LoginUserAsync(analyticsToken, analyticsToken);

            if (!result.IsSuccess)
            {
                throw result.Error;
            }

            this.storedUser = result.Value;
        }
示例#3
0
        public async Task<string> CreateUserAsync()
        {
            string token = Guid.NewGuid().ToString();

            var result = await this.client.CreateUserAsync(token, token);

            if (!result.IsSuccess)
            {
                throw result.Error;
            }

            this.storedUser = result.Value;

            return token;
        }
 public CurrentUserChangedEventArgs(AuthenticatedUser newUser, User previousUser = null)
 {
     PreviousUser = previousUser;
     NewUser = newUser;
 }