Exemplo n.º 1
0
        void MesajlariVeyaPaketiAc(bool Durum)
        {
            if (Durum)
            {
                InvokeOnMainThread(delegate()
                {
                    MesajlarIcinSecilenKullanici.Kullanici = SecilenKisi.SecilenKisiDTO;
                    var mesKey = GetMessageKey(MesajlarIcinSecilenKullanici.Kullanici.id);
                    MesajlarIcinSecilenKullanici.key = mesKey;

                    var LokasyonKisilerStory          = UIStoryboard.FromName("MesajlarBaseVC", NSBundle.MainBundle);
                    ChatVC controller                 = LokasyonKisilerStory.InstantiateViewController("ChatVC") as ChatVC;
                    controller.ModalPresentationStyle = UIModalPresentationStyle.FullScreen;
                    this.PresentViewController(controller, true, null);
                });
            }
            else
            {
                InvokeOnMainThread(delegate()
                {
                    var GoldModal = UIStoryboard.FromName("PaketlerBase", NSBundle.MainBundle);
                    BustisGoldBaseVC controller       = GoldModal.InstantiateViewController("BustisGoldBaseVC") as BustisGoldBaseVC;
                    controller.PrivateProfileVC1      = null;
                    controller.ModalPresentationStyle = UIModalPresentationStyle.OverFullScreen;
                    this.PresentViewController(controller, true, null);
                });
            }
        }
Exemplo n.º 2
0
            public ChatCustomTableCellSoruce(IList <ChatDetayDTO> messages, ChatVC ChatVC2, MEMBER_DATA ME2)
            {
                if (messages == null)
                {
                    throw new ArgumentNullException(nameof(messages));
                }

                this.messages = messages;
                sizingCells   = new BubbleCell[2];
                ChatVC1       = ChatVC2;
                ME            = ME2;
            }
Exemplo n.º 3
0
        void GetUserInfo(string UserID, string keyy)
        {
            WebService webService = new WebService();
            var        Donus      = webService.OkuGetir("users/" + UserID);

            if (Donus != null)
            {
                var Userrr = Newtonsoft.Json.JsonConvert.DeserializeObject <MEMBER_DATA>(Donus.ToString());
                MesajlarIcinSecilenKullanici.Kullanici = Userrr;
                MesajlarIcinSecilenKullanici.key       = keyy;

                var    LokasyonKisilerStory = UIStoryboard.FromName("MesajlarBaseVC", NSBundle.MainBundle);
                ChatVC controller           = LokasyonKisilerStory.InstantiateViewController("ChatVC") as ChatVC;
                controller.ModalPresentationStyle = UIModalPresentationStyle.FullScreen;
                this.GelenBase1.PresentViewController(controller, true, null);
            }
        }
Exemplo n.º 4
0
        void GetUserInfo(string UserID, string keyy)
        {
            WebService webService = new WebService();
            var        Donus2     = webService.OkuGetir("blocked-user/block-list");

            if (Donus2 != null)
            {
                var EngelliKul = Newtonsoft.Json.JsonConvert.DeserializeObject <List <EngelliKullanicilarDTO> >(Donus2.ToString());

                if (EngelliKul.Count > 0)
                {
                    InvokeOnMainThread(delegate()
                    {
                        Engelliler = EngelliKul[0].blockUserId;
                    });
                }
            }
            var Donus = webService.OkuGetir("users/" + UserID);

            if (Donus != null)
            {
                var Userrr = Newtonsoft.Json.JsonConvert.DeserializeObject <MEMBER_DATA>(Donus.ToString());
                MesajlarIcinSecilenKullanici.Kullanici = Userrr;
                MesajlarIcinSecilenKullanici.key       = keyy;
                if (Engelliler == Userrr.id)
                {
                    CustomAlert.GetCustomAlert(GelenBase1, "Bu kullanıcıyı engellediğiniz için mesaj atamazsınız!");
                }
                else
                {
                    var    LokasyonKisilerStory = UIStoryboard.FromName("MesajlarBaseVC", NSBundle.MainBundle);
                    ChatVC controller           = LokasyonKisilerStory.InstantiateViewController("ChatVC") as ChatVC;
                    controller.ModalPresentationStyle = UIModalPresentationStyle.FullScreen;
                    this.GelenBase1.PresentViewController(controller, true, null);
                }
            }
        }