Пример #1
0
        private async void LoadMore()
        {
            pageIndex++;
            var result = await ArticleService.ListArticle(AccessTokenUtil.GetToken(this.Activity), pageIndex, position);

            if (result.Success)
            {
                var tempList = result.Data;
                if (tempList == null || tempList.Count == 0)
                {
                    AlertUtil.ToastShort(Activity, "ÍøÂ粻̫ºÃŶ");
                }
                else
                {
                    // Thread.Sleep(2000);
                    articleList.AddRange(tempList);
                    adapter.SetNewData(articleList);
                    adapter.NotifyItemRemoved(adapter.ItemCount);
                    await SQLiteUtil.UpdateArticleList(tempList);

                    System.Diagnostics.Debug.Write("Ò³Êý:" + pageIndex + "Êý¾Ý×ÜÌõÊý£º" + articleList.Count);
                }
            }
            else
            {
                AlertUtil.ToastShort(Activity, result.Message);
            }
        }
Пример #2
0
        async void GetKbArticleContent(Action callBack)
        {
            try
            {
                var result = await HttpClient.KbArticlesService.GetKbArticles(AccessTokenUtil.GetToken(this), ID);

                if (result.Success)
                {
                    string content = result.Data;
                    firstImgUrl = HtmlUtil.GetHtmlFirstImgUrl(content);
                    content     = content.ReplaceHtml().Trim('"');
                    content     = HtmlUtil.ReadHtml(Assets).Replace("#body#", content).Replace("#title#", kbArticles.Title).Replace("#author#", "作者:" + kbArticles.Author).Replace("#date#", "发布日期:" + kbArticles.DateAdded.ToString("yyyy年MM月dd日 HH:mm"));
                    wb_content.LoadDataWithBaseURL("file:///android_asset/", content, "text/html", "utf-8", null);
                    callBack();
                }
                else
                {
                    AlertUtil.ToastShort(this, result.Message);
                    callBack();
                }
            }
            catch (Exception ex)
            {
                AlertUtil.ToastShort(this, ex.Message);
                MobclickAgent.ReportError(this, ex.ToString());
                callBack();
            }
        }
Пример #3
0
        async void GetArticleContent(Action successCallBack)
        {
            try
            {
                var result = await HttpClient.ArticleService.GetArticle(AccessTokenUtil.GetToken(this), ID);

                if (result.Success)
                {
                    string content = result.Data;
                    content = content.ReplaceHtml().Trim('"');
                    content = HtmlUtil.ReadHtml(Assets).Replace("#body#", content).Replace("#title#", "").Replace("#author#", "").Replace("#date#", "");
                    wb_content.LoadDataWithBaseURL("file:///android_asset/", content, "text/html", "utf-8", null);
                    firstImgSrc = HtmlUtil.GetHtmlFirstImgUrl(content);
                    successCallBack();
                }
                else
                {
                    AlertUtil.ToastShort(this, result.Message);
                }
            }
            catch (Exception ex)
            {
                MobclickAgent.ReportError(this, ex.ToString());
                AlertUtil.ToastShort(this, ex.Message);
            }
        }
Пример #4
0
 public override bool ShouldOverrideUrlLoading(WebView view, string url)
 {
     if (url.IndexOf(Constact.Callback) > -1)
     {
         Uri uri   = new Uri(url.Replace("#", "?"));
         var query = uri.Query.TrimStart('?').Split('&');
         foreach (var item in query)
         {
             var q = item.Split('=');
             if (q[0] == "code")
             {
                 var code = q[1];
                 System.Diagnostics.Debug.Write(code);
                 Token token = AccessTokenUtil.GetToken(context);
                 AuthorizationRequest.Authorization_Code(token, code, (userToken) =>
                 {
                     System.Diagnostics.Debug.Write(userToken.access_token);
                     UserTokenUtil.SaveToken(userToken, context);
                     // ActivityCompat.FinishAfterTransition(context);
                     context.StartActivity(new Intent(context, typeof(MainActivity)));
                     MobclickAgent.OnProfileSignIn(code);
                 },
                                                         error =>
                 {
                     MobclickAgent.ReportError(context, "µÇ¼ʧ°Ü" + error);
                     System.Diagnostics.Debug.Write(error);
                 });
             }
         }
         // view.stoploading();
     }
     return(base.ShouldOverrideUrlLoading(view, url));
 }
Пример #5
0
        private async Task <List <QuestionModel> > listQuestionService()
        {
            var result = new ApiResult <List <QuestionModel> >();

            if (isMy)
            {
                var user = UserInfoShared.GetUserInfo(this.Activity);
                result = await QuestionService.ListQuestion(UserTokenUtil.GetToken(this.Activity), position, pageIndex, true, user.SpaceUserId);
            }
            else
            {
                result = await QuestionService.ListQuestion(AccessTokenUtil.GetToken(this.Activity), position, pageIndex, false, 0);
            }
            if (result.Success)
            {
                _swipeRefreshLayout.Refreshing = false;
                try
                {
                    await SQLiteUtil.UpdateListQuestion(result.Data, isMy);

                    return(result.Data);
                }
                catch (Exception ex)
                {
                    System.Diagnostics.Debug.Write(ex.ToString());
                    return(null);
                }
            }
            return(null);
        }
Пример #6
0
        protected override async void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            // Create your application here
            StatusBarUtil.SetColorStatusBars(this);
            ImageLoaderConfiguration configuration = new ImageLoaderConfiguration.Builder(this).WriteDebugLogs().Build();//³õʼ»¯Í¼Æ¬¼ÓÔØ¿ò¼Ü

            ImageLoader.Instance.Init(configuration);
            //ÏÔʾͼƬÅäÖÃ
            options = new DisplayImageOptions.Builder()
                      .ShowImageForEmptyUri(Resource.Drawable.icon_yuanyou)
                      .ShowImageOnFail(Resource.Drawable.icon_yuanyou)
                      .ShowImageOnLoading(Resource.Drawable.icon_user)
                      .CacheInMemory(true)
                      .BitmapConfig(Bitmap.Config.Rgb565)
                      .CacheOnDisk(true)
                      // .Displayer(new DisplayerImageCircle(20))
                      .Build();
            SetToolBarNavBack();
            _swipeRefreshLayout = FindViewById <SwipeRefreshLayout>(Resource.Id.swipeRefreshLayout);
            _swipeRefreshLayout.SetColorScheme(Resource.Color.primary);
            tv_dateAdded       = FindViewById <TextView>(Resource.Id.tv_dateAdded);
            tv_userDisplayName = FindViewById <TextView>(Resource.Id.tv_userDisplayName);
            iv_userIcon        = FindViewById <ImageView>(Resource.Id.iv_userIcon);
            tv_content         = FindViewById <TextView>(Resource.Id.tv_content);
            edit_content       = FindViewById <EditText>(Resource.Id.edit_content);
            btn_submit         = FindViewById <Button>(Resource.Id.btn_submit);
            btn_submit.Click  += AddCommentClick;
            statusId           = Intent.GetIntExtra("id", 0);
            GetClientStatus(statusId);
            shareWidget   = new UMengShareWidget(this);
            _recyclerView = FindViewById <RecyclerView>(Resource.Id.recyclerView);
            _recyclerView.SetLayoutManager(new LinearLayoutManager(this));


            _swipeRefreshLayout.Post(() => {
                _swipeRefreshLayout.Refreshing = true;
            });
            _swipeRefreshLayout.Refresh += async(s, e) =>
            {
                await StatusService.ListStatusComment(AccessTokenUtil.GetToken(this), statusId, callBackSuccess, callBackError);
            };
            edit_content.TextChanged += (s, e) =>
            {
                if (string.IsNullOrEmpty(edit_content.Text.Trim()))
                {
                    btn_submit.Enabled = false;
                }
                else
                {
                    btn_submit.Enabled = true;
                }
            };
            AlertUtil.ToastShort(this, "Ïß³ÌID" + System.Threading.Thread.CurrentThread.ManagedThreadId.ToString());
            await StatusService.ListStatusComment(AccessTokenUtil.GetToken(this), statusId, callBackSuccess, callBackError);

            _recyclerView.AddItemDecoration(new RecyclerViewDecoration(this, (int)Orientation.Vertical));
        }
Пример #7
0
        public override async void OnViewCreated(View view, Bundle savedInstanceState)
        {
            base.OnViewCreated(view, savedInstanceState);
            ly_expire           = view.FindViewById <LinearLayout>(Resource.Id.ly_expire);
            tv_startLogin       = view.FindViewById <TextView>(Resource.Id.tv_startLogin);
            _swipeRefreshLayout = view.FindViewById <SwipeRefreshLayout>(Resource.Id.swipeRefreshLayout);
            _swipeRefreshLayout.SetColorSchemeResources(Resource.Color.primary);
            _swipeRefreshLayout.SetOnRefreshListener(this);
            userToken   = UserTokenUtil.GetToken(Activity);
            accessToken = AccessTokenUtil.GetToken(Activity);

            _recyclerView = view.FindViewById <RecyclerView>(Resource.Id.recyclerView);
            _recyclerView.SetLayoutManager(new Android.Support.V7.Widget.LinearLayoutManager(this.Activity));
            //_recyclerView.AddItemDecoration(new RecyclerViewDecoration(this.Activity, (int)Orientation.Vertical));
            try
            {
                if (position != 0 || isMy) //³ýÁË×îÐÂÉÁ´æ£¬ÆäËûµÄ¶¼Òªusertoken
                {
                    if (UserUtil.Instance(Activity).LoginExpire())
                    {
                        ly_expire.Visibility           = ViewStates.Visible;
                        _swipeRefreshLayout.Visibility = ViewStates.Gone;
                        tv_startLogin.Click           += (s, e) =>
                        {
                            Activity.StartActivity(new Intent(Activity, typeof(loginactivity)));
                        };
                    }
                    else
                    {
                        ly_expire.Visibility           = ViewStates.Gone;
                        _swipeRefreshLayout.Visibility = ViewStates.Visible;
                        statusList = await SQLiteUtil.SelectStatusList(Constact.PageSize, isMy);

                        if (statusList != null && statusList.Count != 0)
                        {
                            initRecycler();
                        }
                        OnRefresh();
                    }
                }
                else
                {
                    ly_expire.Visibility           = ViewStates.Gone;
                    _swipeRefreshLayout.Visibility = ViewStates.Visible;
                    statusList = await SQLiteUtil.SelectStatusList(Constact.PageSize);

                    if (statusList != null && statusList.Count != 0)
                    {
                        initRecycler();
                    }
                    OnRefresh();
                }
            }
            catch (Exception ex)
            {
                System.Diagnostics.Debug.Write("statusTabFragment", ex.ToString());
            }
        }
Пример #8
0
        protected override async void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            POSTID = Intent.GetIntExtra("postId", 0);
            SetToolBarNavBack();
            StatusBarUtil.SetColorStatusBars(this);
            SetToolBarTitle(Resources.GetString(Resource.String.comment));
            //显示图片配置
            options = new DisplayImageOptions.Builder()
                      .ShowImageForEmptyUri(Resource.Drawable.icon_yuanyou)
                      .ShowImageOnFail(Resource.Drawable.icon_yuanyou)
                      .ShowImageOnLoading(Resource.Drawable.icon_user)
                      .CacheInMemory(true)
                      .BitmapConfig(Bitmap.Config.Rgb565)
                      .CacheOnDisk(true)
                      // .Displayer(new DisplayerImageCircle(20))
                      .Build();

            edit_content = FindViewById <EditText>(Resource.Id.edit_content);
            btn_submit   = FindViewById <Button>(Resource.Id.btn_submit);
            //btn_submit.enabvle
            btn_submit.Click += (s, e) =>
            {
                Add();
            };
            edit_content.TextChanged += (s, e) =>
            {
                string temp = edit_content.Text.TrimStart().TrimEnd();
                if (!string.IsNullOrEmpty(temp))
                {
                    btn_submit.Enabled = true;
                    if (atUserName != null && atUserName.Length > 0 && temp.Contains(atUserName))
                    {
                        isAt = true;
                    }
                    else
                    {
                        isAt = false;
                    }
                }
                else
                {
                    btn_submit.Enabled = false;
                }
            };

            _swipeRefreshLayout = FindViewById <SwipeRefreshLayout>(Resource.Id.swipeRefreshLayout);
            _swipeRefreshLayout.SetColorSchemeResources(Resource.Color.primary);
            _swipeRefreshLayout.SetOnRefreshListener(this);

            _recyclerView = FindViewById <RecyclerView>(Resource.Id.recyclerView);
            _recyclerView.SetLayoutManager(new Android.Support.V7.Widget.LinearLayoutManager(this));
            _recyclerView.AddItemDecoration(new RecyclerViewDecoration(this, (int)Orientation.Vertical));
            System.Diagnostics.Debug.Write("主线程ID" + Thread.CurrentThread.ManagedThreadId);
            accessToken = AccessTokenUtil.GetToken(this);
            OnRefresh();
        }
Пример #9
0
        public async void OnRefresh()
        {
            _swipeRefreshLayout.Post(() => {
                _swipeRefreshLayout.Refreshing = true;
            });
            pageIndex = 1;
            if (position == 3)
            {
                var result = await KbArticlesService.ListKbArticle(AccessTokenUtil.GetToken(this.Activity), pageIndex);

                if (result.Success)
                {
                    //var tempList = result.Data;
                    kbArticlesList = result.Data;
                    adapterKbArticles.SetNewData(kbArticlesList);
                    if (kbArticlesList != null && kbArticlesList.Count != 0)
                    {
                        await SQLiteUtil.UpdateKbArticlesList(result.Data);
                    }
                    _swipeRefreshLayout.Refreshing = false;
                }
                else
                {
                    AlertUtil.ToastShort(Activity, result.Message);
                    _swipeRefreshLayout.Refreshing = false;
                }
            }
            else
            {
                var result = await NewsService.ListNews(AccessTokenUtil.GetToken(this.Activity), pageIndex, position);

                if (result.Success)
                {
                    newsList = result.Data;
                    if (position == 1)
                    {
                        newsList.ForEach(f => f.IsHot = true);
                    }
                    if (position == 2)
                    {
                        newsList.ForEach(f => f.IsRecommend = true);
                    }
                    adapter.SetNewData(newsList);
                    if (newsList != null && newsList.Count != 0)
                    {
                        await SQLiteUtil.UpdateNewsList(newsList);
                    }
                    _swipeRefreshLayout.Refreshing = false;
                }
                else
                {
                    AlertUtil.ToastShort(Activity, result.Message);
                    _swipeRefreshLayout.Refreshing = false;
                }
            }
        }
Пример #10
0
        public async void OnRefresh()
        {
            _swipeRefreshLayout.Post(() =>
            {
                _swipeRefreshLayout.Refreshing = true;
            });
            pageIndex = 1;
            var result = new ApiResult <List <QuestionModel> >();

            if (isMy)
            {
                //var user = UserInfoShared.GetUserInfo(this.Activity);
                result = await QuestionService.ListQuestion(UserTokenUtil.GetToken(this.Activity), position, pageIndex, true, userInfo.SpaceUserId);
            }
            else
            {
                result = await QuestionService.ListQuestion(AccessTokenUtil.GetToken(this.Activity), position, pageIndex, false, 0);
            }
            if (result.Success)
            {
                listQuestion = result.Data;
                if (!isFirstRefresh)
                {
                    adapter.SetNewData(listQuestion);
                }
                else
                {
                    initRecycler();
                    try
                    {
                        await SQLiteUtil.UpdateListQuestion(listQuestion, isMy);
                    }
                    catch (Exception ex)
                    {
                        //todo
                        //AlertUtil.ToastShort(Activity,ex.ToString());
                    }
                }
                isFirstRefresh = false;
                _swipeRefreshLayout.Post(() =>
                {
                    _swipeRefreshLayout.Refreshing = false;
                });
            }
            else
            {
                AlertUtil.ToastShort(Activity, result.Message);
                _swipeRefreshLayout.Post(() =>
                {
                    _swipeRefreshLayout.Refreshing = false;
                });
            }
        }
Пример #11
0
 public override void OnCreate(Bundle savedInstanceState)
 {
     base.OnCreate(savedInstanceState);
     position = Arguments.GetInt("position");
     //ÏÔʾͼƬÅäÖÃ
     options = new DisplayImageOptions.Builder()
               .ShowImageForEmptyUri(Resource.Drawable.icon_yuanyou)
               .ShowImageOnFail(Resource.Drawable.icon_yuanyou)
               .ShowImageOnLoading(Resource.Drawable.icon_user)
               .CacheInMemory(true)
               .BitmapConfig(Bitmap.Config.Rgb565)
               .CacheOnDisk(true)
               // .Displayer(new DisplayerImageCircle(20))
               .Build();
     accessToken = AccessTokenUtil.GetToken(this.Activity);
 }
Пример #12
0
        async void GetServerQuestion()
        {
            try
            {
                var result = await QuestionService.GetQuestionDetail(AccessTokenUtil.GetToken(this), questionId);

                if (result.Success)
                {
                    question = result.Data;
                    BindView();
                }
            }
            catch (Exception ex)
            {
                MobclickAgent.ReportError(this, ex.ToString());
            }
        }
Пример #13
0
        private async void LoadMoreKbarticles()
        {
            pageIndex++;
            var result = await KbArticlesService.ListKbArticle(AccessTokenUtil.GetToken(this.Activity), pageIndex);

            if (result.Success)
            {
                var tempList = result.Data;
                kbArticlesList.AddRange(tempList);
                adapterKbArticles.SetNewData(kbArticlesList);
                await SQLiteUtil.UpdateKbArticlesList(tempList);
            }
            else
            {
                AlertUtil.ToastShort(Activity, result.Message);
            }
        }
Пример #14
0
        private async void LoadMore()
        {
            pageIndex++;
            var result = await NewsService.ListNews(AccessTokenUtil.GetToken(this.Activity), pageIndex, position);

            if (result.Success)
            {
                var tempList = result.Data;
                newsList.AddRange(tempList);
                adapter.SetNewData(newsList);
                await SQLiteUtil.UpdateNewsList(tempList);
            }
            else
            {
                AlertUtil.ToastShort(Activity, result.Message);
            }
        }
Пример #15
0
        private async void initRecyclerView()
        {
            var result = await QuestionService.ListQuestionAnswer(AccessTokenUtil.GetToken(this), questionId);

            if (result.Success)
            {
                answerList = result.Data;
                initRecycler();
            }
            else
            {
                AlertUtil.ToastShort(this, result.Message);
            }
            _swipeRefreshLayout.PostDelayed(() =>
            {
                _swipeRefreshLayout.Refreshing = false;
            }, 1000);
        }
Пример #16
0
        async void GetNewsContent(Action callBack)
        {
            try
            {
                if (string.IsNullOrEmpty(news.Body))
                {
                    var result = await HttpClient.NewsService.GetNewsDetail(AccessTokenUtil.GetToken(this), ID);

                    if (result.Success)
                    {
                        news.Body = result.Data;
                        await SQLiteUtil.UpdateNews(news);

                        firstImgUrl = HtmlUtil.GetHtmlFirstImgUrl(news.Body);
                        news.Body   = news.Body.ReplaceHtml().Trim('"');
                        string content = HtmlUtil.ReadHtml(Assets).Replace("#body#", news.Body).Replace("#title#", news.Title).Replace("#author#", "").Replace("#date#", "发布日期:" + news.DateAdded.ToString("yyyy年MM月dd日 HH:mm"));
                        wb_content.LoadDataWithBaseURL("file:///android_asset/", content, "text/html", "utf-8", null);
                        callBack();
                    }
                    else
                    {
                        AlertUtil.ToastShort(this, result.Message);
                        callBack();
                    }
                }
                else
                {
                    news.Body = news.Body.ReplaceHtml().Trim('"');
                    string content = HtmlUtil.ReadHtml(Assets).Replace("#body#", news.Body).Replace("#title#", news.Title).Replace("#author#", "").Replace("#date#", "发布日期:" + news.DateAdded.ToString("yyyy年MM月dd日 HH:mm"));
                    wb_content.LoadDataWithBaseURL("file:///android_asset/", content, "text/html", "utf-8", null);
                    firstImgUrl = HtmlUtil.GetHtmlFirstImgUrl(news.Body);
                    callBack();
                }
            }
            catch (Exception ex)
            {
                AlertUtil.ToastShort(this, ex.ToString());
                callBack();
                MobclickAgent.ReportError(this, ex.ToString());
            }
        }
Пример #17
0
        private async Task <List <KbArticles> > listKbArticlesServer()
        {
            var result = await KbArticlesService.ListKbArticle(AccessTokenUtil.GetToken(this.Activity), pageIndex);

            if (result.Success)
            {
                _swipeRefreshLayout.Refreshing = false;
                try
                {
                    await SQLiteUtil.UpdateKbArticlesList(result.Data);

                    return(result.Data);
                }
                catch (Exception ex)
                {
                    System.Diagnostics.Debug.Write(ex.ToString());
                    return(null);
                }
            }
            return(null);
        }
Пример #18
0
        public override async void OnViewCreated(View view, Bundle savedInstanceState)
        {
            base.OnViewCreated(view, savedInstanceState);
            _swipeRefreshLayout = view.FindViewById <SwipeRefreshLayout>(Resource.Id.swipeRefreshLayout);
            ly_expire           = view.FindViewById <LinearLayout>(Resource.Id.ly_expire);
            tv_startLogin       = view.FindViewById <TextView>(Resource.Id.tv_startLogin);
            userInfo            = UserInfoShared.GetUserInfo(this.Activity);;

            _swipeRefreshLayout.SetColorSchemeResources(Resource.Color.primary);

            _swipeRefreshLayout.SetOnRefreshListener(this);


            _recyclerView = view.FindViewById <RecyclerView>(Resource.Id.recyclerView);
            _recyclerView.SetLayoutManager(new Android.Support.V7.Widget.LinearLayoutManager(this.Activity));

            userToken   = UserTokenUtil.GetToken(Activity);
            accessToken = AccessTokenUtil.GetToken(Activity);
            if (isMy && userToken.IsExpire)
            {
                ly_expire.Visibility           = ViewStates.Visible;
                _swipeRefreshLayout.Visibility = ViewStates.Gone;
                tv_startLogin.Click           += (s, e) =>
                {
                    Activity.StartActivity(new Intent(Activity, typeof(loginactivity)));
                };
            }
            else
            {
                ly_expire.Visibility           = ViewStates.Gone;
                _swipeRefreshLayout.Visibility = ViewStates.Visible;
                listQuestion = await SQLiteUtil.SelectListQuestion(Constact.PageSize, isMy);

                if (listQuestion != null && listQuestion.Count > 0)
                {
                    initRecycler();
                }
                OnRefresh();
            }
        }
Пример #19
0
        //Ìí¼ÓÉÁ´æÆÀÂÛʼþ
        public async void AddCommentClick(Object o, EventArgs e)
        {
            string content = edit_content.Text.Trim();

            if (string.IsNullOrEmpty(content))
            {
                return;
            }
            if (!string.IsNullOrEmpty(displayUserName))
            {
                content = content.Replace(displayUserName, displayUserName + " ");
            }
            ProgressDialog progressDialog = new ProgressDialog(this);

            progressDialog.SetProgressStyle(ProgressDialogStyle.Spinner);
            progressDialog.SetMessage("Ìí¼ÓÆÀÂÛÖÐ....");
            progressDialog.Show();
            var result = await StatusService.AddComment(UserTokenUtil.GetToken(this), statusId.ToString(), replyToUserId, parentCommentId, content);

            if (result.Success)
            {
                RunOnUiThread(async() =>
                {
                    progressDialog.Hide();
                    await StatusService.ListStatusComment(AccessTokenUtil.GetToken(this), statusId, callBackSuccess, callBackError);
                    edit_content.Text = "";
                    AlertUtil.ToastShort(this, "ÆÀÂ۳ɹ¦");
                });
            }
            else
            {
                RunOnUiThread(() =>
                {
                    progressDialog.Hide();
                    AlertUtil.ToastShort(this, result.Message);
                });
            }
        }
Пример #20
0
        private async void LoadMore()
        {
            pageIndex++;
            var result = new ApiResult <List <StatusModel> >();

            if (isMy)
            {
                result = await StatusService.ListStatus(UserTokenUtil.GetToken(this.Activity), position, pageIndex, true);
            }
            else
            {
                if (position == 0)
                {
                    result = await StatusService.ListStatus(AccessTokenUtil.GetToken(this.Activity), position, pageIndex, false);
                }
                else
                {
                    result = await StatusService.ListStatus(UserTokenUtil.GetToken(this.Activity), position, pageIndex, false);
                }
            }
            if (result.Success)
            {
                var tempList = result.Data;
                statusList.AddRange(tempList);
                adapter.SetNewData(statusList);
                if (isMy)
                {
                    tempList.ForEach(f => f.MySelf = true);
                }
                await SQLiteUtil.UpdateStatusList(tempList);
            }
            else
            {
                AlertUtil.ToastShort(Activity, result.Message);
            }
        }