コード例 #1
0
        private async Task <bool> DeleteEmails()
        {
            try
            {
                if (CrossConnectivity.Current.IsConnected)
                {
                    CustomProgressDialog.ShowProgDialog(mActivity,
                                                        GetString(Resource.String.processing_message));
                    bool isDelete = await WebServiceMethods.DeleteEmail(emailResponseObj.MailId,
                                                                        mSharedPreferencesManager.GetString(ConstantsDroid.USER_ID_PREFERENCE, ""));

                    CustomProgressDialog.HideProgressDialog();
                    return(isDelete);
                }
            }
            catch (Exception ex)
            {
                CustomProgressDialog.HideProgressDialog();
            }
            return(false);
        }