コード例 #1
0
 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>();
 }
コード例 #2
0
 public ImagesService(IQuickbloxClient quickbloxClient, IFileStorage fileStorage)
 {
     this.fileStorage = fileStorage;
     this.quickbloxClient = quickbloxClient;
 }
コード例 #3
0
 public CachingQuickbloxClient(IQuickbloxClient quickbloxClient)
 {
     this.quickbloxClient = quickbloxClient;
     quickbloxClient.ChatXmppClient.PresenceReceived += ChatXmppClientOnOnPresenceReceived;
 }
コード例 #4
0
        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);
        }
コード例 #5
0
 public PushNotificationsManager(IQuickbloxClient quickbloxClient)
 {
     this.quickbloxClient = quickbloxClient;
 }