private void NavigateToPush(AuthenticatedUser user) { Intent push = new Intent (this, typeof(PushActivity)); push.PutExtra ("displayName", user.FirstName); push.PutExtra ("userId", user.ID); StartActivity (push); }
public async Task AuthenticateUserAsync(string analyticsToken) { var result = await this.client.LoginUserAsync(analyticsToken, analyticsToken); if (!result.IsSuccess) { throw result.Error; } this.storedUser = result.Value; }
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; }