예제 #1
0
        private void LoadData()
        {
            var dic = new Dictionary <String, String>
            {
                { Constant.GETCREDITCARDDETAILSNEWFORPHONE_CUSTOMERID, AppSettings.UserID },
                { Constant.GETCREDITCARDDETAILSNEWFORPHONE_LOGINTYPE, "-1" },
                { Constant.GETCREDITCARDDETAILSNEWFORPHONE_TOKENID, string.Empty }                // do not use the actual token
            };

            String result = String.Empty;

            Task runSync = Task.Factory.StartNew(async() => {
                result   = await AppData.ApiCall(Constant.GETCREDITCARDDETAILSNEWFORPHONE, dic);
                response = (GetCreditCardDetailsNewForPhoneResponse)AppData.ParseResponse(Constant.GETCREDITCARDDETAILSNEWFORPHONE, result);
                if (_DoUpdate != null)
                {
                    _DoUpdate();
                }
            }).Unwrap();
        }
예제 #2
0
 public CreditCardAdapter(Context context, GetCreditCardDetailsNewForPhoneResponse cards, Activity superActivity)
 {
     mContext       = context;
     mCards         = cards;
     mSuperActivity = superActivity;
 }