Exemplo n.º 1
0
 private void NavigateToPush(AuthenticatedUser user)
 {
     Intent push = new Intent (this, typeof(PushActivity));
     push.PutExtra ("displayName", user.FirstName);
     push.PutExtra ("userId", user.ID);
     StartActivity (push);
 }
Exemplo n.º 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;
        }
Exemplo n.º 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;
 }