Example #1
0
 void FillUser()
 {
     ServiceDispatcher.GetDefaultService().GetUserProfileFor(new GetUserProfileForOptions {
         ScreenName = Tweet.Author.ScreenName
     }, (user, response) =>
     {
         if (response.StatusCode != HttpStatusCode.OK)
         {
             MessageService.ShowError(Localization.Resources.ErrorGettingProfile);
         }
         Tweet.User = user;
         SetAvatar();
     });
 }
Example #2
0
 void ShowFollowMessage()
 {
     if ((Config.FollowMessageShown == false || Config.FollowMessageShown == null) && ServiceDispatcher.CanGetServices)
     {
         var  service = Dependency.Resolve <IMessageService>();
         bool result  = service.AskYesNoQuestion(Localization.Resources.FollowOcellAppMessage, "");
         if (result)
         {
             ServiceDispatcher.GetDefaultService().FollowUser(new FollowUserOptions {
                 ScreenName = "OcellApp"
             }, (a, b) => { });
         }
         Config.FollowMessageShown = true;
     }
 }
Example #3
0
        public void Loaded(string userName)
        {
            Regex remove = new Regex("@|:");

            userName = remove.Replace(userName, "");

            ScreenName = userName;

            BarText   = Resources.RetrievingUser;
            IsLoading = true;
            ServiceDispatcher.GetDefaultService().ListUserProfilesFor(new ListUserProfilesForOptions {
                ScreenName = new List <string> {
                    userName
                }
            }, ReceiveUsers);
        }