public DialogsManager(IQuickbloxClient quickbloxClient) { this.quickbloxClient = quickbloxClient; quickbloxClient.ChatXmppClient.MessageReceived += MessagesClientOnOnMessageReceived; quickbloxClient.ChatXmppClient.SystemMessageReceived += ChatXmppClientOnOnSystemMessage; quickbloxClient.ChatXmppClient.ContactRemoved += ChatXmppClientOnOnContactRemoved; quickbloxClient.ChatXmppClient.SystemMessageSent += ChatXmppClientOnOnSystemMessage; Dialogs = new ObservableCollection<DialogViewModel>(); }
public ImagesService(IQuickbloxClient quickbloxClient, IFileStorage fileStorage) { this.fileStorage = fileStorage; this.quickbloxClient = quickbloxClient; }
public CachingQuickbloxClient(IQuickbloxClient quickbloxClient) { this.quickbloxClient = quickbloxClient; quickbloxClient.ChatXmppClient.PresenceReceived += ChatXmppClientOnOnPresenceReceived; }
private async Task DoFirstNavigation(IQuickbloxClient quickbloxClient, INavigationService navigationService) { Credentials credentials = ServiceLocator.Locator.Get<ICredentialsService>().GetSavedCredentials(); if (credentials != null) { var response = await quickbloxClient.AuthenticationClient.CreateSessionWithEmailAsync(credentials.Login, credentials.Password, deviceRequestRequest: new DeviceRequest() { Platform = Platform.windows_phone, Udid = Helpers.GetHardwareId() }); if (response.StatusCode == HttpStatusCode.Created) { navigationService.Navigate(ViewLocator.Dialogs, new DialogsNavigationParameter { CurrentUserId = response.Result.Session.UserId, Password = credentials.Password }); return; } } navigationService.Navigate(ViewLocator.First); }
public PushNotificationsManager(IQuickbloxClient quickbloxClient) { this.quickbloxClient = quickbloxClient; }