public postEventRequest(FriendListModel objFLM, Activity context, long eventID, Contact_FriendAdapter objContact_FriendAdapter)
        {
            this.objFLM  = objFLM;
            this.context = context;
            this.eventID = eventID;
            this.objContact_FriendAdapter = objContact_FriendAdapter;

            if (objFLM.IsEmail == true)
            {
                this.eventRequestModel = new EventRequest
                {
                    EventID  = eventID,
                    FriendID = objFLM.ID,
                    Email    = objFLM.PhoneNumber,
                };
            }
            else
            {
                this.eventRequestModel = new EventRequest
                {
                    EventID     = eventID,
                    FriendID    = objFLM.ID,
                    PhoneNumber = objFLM.PhoneNumber,
                };
            }
        }
        protected override void OnPostExecute(Java.Lang.Object result)
        {
            base.OnPostExecute(result);
            p.Dismiss();

            for (int i = 0; i < _contactList.Count; i++)
            {
                var objE = (from x in _friendList where x.Email == _contactList[i].PhoneNo && x.SignUpType == "E" select x).FirstOrDefault();
                if (objE != null && objE.InvitedContact == "1")
                {
                    objE.FriendName     = _contactList[i].DisplayName;
                    objE.PhoneNumber    = _contactList[i].PhoneNo;
                    objE.PhoneContactId = _contactList[i].PhoneContactId;
                    objE.Picture        = _contactList[i].PhotoId;
                    objE.IsEmail        = true;
                    objE.IsContact      = true;
                    continue;
                }
                else if (objE != null && objE.IsFriend == "1")
                {
                    objE.FriendName  = objE.FriendName;
                    objE.PhoneNumber = _contactList[i].PhoneNo;
                    objE.IsEmail     = true;

                    if (objE.Picture == "")
                    {
                        objE.PhoneContactId = _contactList[i].PhoneContactId;
                        objE.Picture        = _contactList[i].PhotoId;
                    }

                    continue;
                }

                objE = (from x in _friendList where x.PhoneNumber == _contactList[i].PhoneNo && x.SignUpType == "P" select x).FirstOrDefault();
                if (objE != null && objE.InvitedContact == "1")
                {
                    objE.FriendName     = _contactList[i].DisplayName;
                    objE.PhoneNumber    = _contactList[i].PhoneNo;
                    objE.PhoneContactId = _contactList[i].PhoneContactId;
                    objE.Picture        = _contactList[i].PhotoId;
                    objE.IsContact      = true;
                    objE.IsEmail        = false;
                    continue;
                }
                else if (objE != null && objE.IsFriend == "1")
                {
                    objE.FriendName  = objE.FriendName;
                    objE.PhoneNumber = _contactList[i].PhoneNo;
                    objE.IsEmail     = false;
                    objE.IsContact   = true;
                    if (objE.Picture == "")
                    {
                        objE.PhoneContactId = _contactList[i].PhoneContactId;
                        objE.Picture        = _contactList[i].PhotoId;
                    }

                    continue;
                }

                friendListModel                = new FriendListModel();
                friendListModel.FriendName     = _contactList[i].DisplayName;
                friendListModel.PhoneNumber    = _contactList[i].PhoneNo;
                friendListModel.Picture        = _contactList[i].PhotoId;
                friendListModel.IsContact      = true;
                friendListModel.IsEmail        = _contactList[i].isEmailAddress;
                friendListModel.ID             = 0;
                friendListModel.PhoneContactId = _contactList[i].PhoneContactId;
                _friendList.Add(friendListModel);
            }

            var invitedFriends = (from x in _friendList where x.PhoneNumber == "" && x.IsFriend == "1" select x).ToList();

            invitedFriends.Select(c => { c.PhoneNumber = c.Email; c.IsEmail = true; return(c); }).ToList();

            //If Other user invited to that event and that user not in over contact list then we have remove that contact
            _friendList = (from x in _friendList
                           where x.FriendName != null && x.FriendName != ""
                           orderby x.isInvitedFriend descending, x.InvitedContact descending,
                           x.IsFriend descending, x.IsContact descending, x.FriendName, x.Picture, x.PhoneContactId
                           select x).ToList();

            objAdapter        = new Contact_FriendAdapter(_friendList, context, eventID);
            lvContact.Adapter = objAdapter;
            txtSearch.AddTextChangedListener(new textwatcher(this));
            lvContact.TextFilterEnabled = true;
            lvContact.ChoiceMode        = ChoiceMode.None;
        }