async private void CompnayActivation(string action) { var compApi = new CompanyAPI(api); ErrorCodes result; string message; if (action == "Activate") { message = "ActivateCompany"; result = await compApi.Activate(); } else if (action == "Deactivate") { message = "CompanyIsDeactivated"; result = await compApi.Deactivate(); } else { message = null; result = ErrorCodes.NoSucces; } if (result != ErrorCodes.Succes) { UtilDisplay.ShowErrorCode(result); } else { CloseDockItem(); UnicontaMessageBox.Show(string.Format("{0}. {1}", Uniconta.ClientTools.Localization.lookup(message), api.CompanyEntity._Name), Uniconta.ClientTools.Localization.lookup("Information"), MessageBoxButton.OK); } }
public async Task <CompanyAPI> PerformGetCompanyAsync(string itemcode) { Debug.WriteLine("Activate get Company"); CompanyAPI Items = new CompanyAPI(); Debug.WriteLine("mã hàng:" + itemcode); var uri = new Uri(string.Format(Constants.RestCompanyUrl, itemcode)); try { Debug.WriteLine("link:" + uri); var response = await client.GetAsync(uri); if (response.IsSuccessStatusCode) { var content = await response.Content.ReadAsStringAsync(); Debug.WriteLine(content); Items = JsonConvert.DeserializeObject <CompanyAPI>(content); return(Items); } } catch (Exception ex) { Debug.WriteLine(@" ERROR {0}", ex.Message); } throw new NotImplementedException(); }
async void CreateBackup(string name, bool copyTrans, bool copyPhysicalVouchers, bool copyAttachments) { var compApi = new CompanyAPI(api); var result = await compApi.CreateCopy(name, copyTrans, copyPhysicalVouchers, copyAttachments); UtilDisplay.ShowErrorCode(result); }
async Task CopyBaseData() { CompanyAPI comApi = new CompanyAPI(api); ErrorCodes res = await comApi.CopyBaseData(fromCompany, editrow, (bool)chkDimensions.IsChecked, (bool)chkTransType.IsChecked, (bool)chkNumberSerei.IsChecked, (bool)chkPayments.IsChecked, (bool)chkJournal.IsChecked, (bool)chkGroups.IsChecked, (bool)chkGlAccount.IsChecked, (bool)chkVat.IsChecked, CopyProject : (bool)chkProject.IsChecked); Thread.Sleep(2 * 1000); editrow.ClearCache(typeof(GLVat)); editrow.ClearCache(typeof(GLAccount)); busyIndicator.IsBusy = false; if (res != ErrorCodes.Succes) { UtilDisplay.ShowErrorCode(res); } }
void GDPRCleanUp() { closePageOnSave = false; saveForm(); var cwobj = new CwSimulateGDPR(); cwobj.Closing += async delegate { if (cwobj.DialogResult == true) { var compApi = new CompanyAPI(api); if (cwobj.Simulate) { var res = await compApi.GDPRTextCleanup(); if (res == null || res.Length == 0) { UtilDisplay.ShowErrorCode(res == null ? compApi.LastError : ErrorCodes.NoLinesFound); } else { AddDockItem(TabControls.DebtorCreditorGDPRTextCleanUp, new object[] { api, res }, string.Format("{0} {1}", Uniconta.ClientTools.Localization.lookup("CleanUp"), Uniconta.ClientTools.Localization.lookup("Account"))); } } else { EraseYearWindow delDialog = new EraseYearWindow("", false); delDialog.Closed += async delegate { if (delDialog.DialogResult == true) { var res = await compApi.GDPRCleanup(); UtilDisplay.ShowErrorCode(res); } }; delDialog.Show(); } } }; cwobj.Show(); }
private void DeleteAllAttachmentsCompany() { EraseYearWindow EraseYearWindowDialog = new EraseYearWindow(editrow.CompanyName, false); EraseYearWindowDialog.Closed += delegate { if (EraseYearWindowDialog.DialogResult == true) { EnterPasswordWindow passwordConfirmationDailog = new EnterPasswordWindow(); passwordConfirmationDailog.Closed += async delegate { if (passwordConfirmationDailog.DialogResult == true) { if (UnicontaMessageBox.Show(string.Format(Uniconta.ClientTools.Localization.lookup("ConfirmDeleteTrans"), editrow.CompanyName), Uniconta.ClientTools.Localization.lookup("Confirmation"), #if !SILVERLIGHT MessageBoxButton.YesNo) == MessageBoxResult.Yes) #else MessageBoxButton.OKCancel) == MessageBoxResult.OK) #endif { CompanyAPI compApi = new CompanyAPI(api); var res = await compApi.EraseAllTransactions(passwordConfirmationDailog.Password); if (res != ErrorCodes.Succes) { UtilDisplay.ShowErrorCode(res); } else { UtilDisplay.ShowErrorCode(res); } } } }; passwordConfirmationDailog.Show(); } }; EraseYearWindowDialog.Show(); }
private void DeleteCompany() { EraseYearWindow EraseYearWindowDialog = new EraseYearWindow(editrow.CompanyName, false); EraseYearWindowDialog.Closed += async delegate { if (EraseYearWindowDialog.DialogResult == true) { CompanyAPI compApi = new CompanyAPI(api); var res = await compApi.Delete(); if (res != ErrorCodes.Succes) { UtilDisplay.ShowErrorCode(res); } else { var companiesTemp = Controls.CWDefaultCompany.loadedCompanies.ToList(); companiesTemp.Remove(editrow); Controls.CWDefaultCompany.loadedCompanies = companiesTemp.ToArray(); var defCompId = session.User._DefaultCompany; //Check to Ensure that User hasn't deleted his own default company var comp = companiesTemp.Where(c => c.CompanyId == defCompId).SingleOrDefault(); if (comp != null) { globalEvents.OnRefresh(TabControls.CreateCompany, comp.CompanyId); } else { globalEvents.OnRefresh(TabControls.CreateCompany, companiesTemp.FirstOrDefault()); } dockCtrl?.CloseAllDocuments(true); } } }; EraseYearWindowDialog.Show(); }
public async void SetLayout(string itemcode) { Debug.WriteLine("active layout"); NavigationPage.SetHasBackButton(this, true); NavigationPage.SetHasNavigationBar(this, true); string hotline = "19001122"; var scroll = new ScrollView() { BackgroundColor = Color.FromHex("#dddee3") }; var layout = new StackLayout(); var paddingTLR = new Thickness(10, 10, 10, 10); var paddingTB = new Thickness(0, 10, 0, 10); //Trích xuất dữ liệu LayoutDataResult dataresult = new LayoutDataResult(); ProductAPI proapi = new ProductAPI(); CompanyAPI comapi = new CompanyAPI(); ImageAPI image = new ImageAPI(); try { proapi = await App.SvManager.GetProductAsync(itemcode); comapi = await App.SvManager.GetCompanyAsync(itemcode); image = await App.SvManager.GetImageAsync(itemcode); Product pro = proapi.item; Company com = comapi.company; dataresult.product = pro; dataresult.company = com; if (image.image.Contains("data:image/png;base64,")) { string head = "data:image/png;base64,"; image.image = image.image.Remove(0, head.Length); } Debug.WriteLine(dataresult.image); dataresult.image = image.image; StackLayout stack1 = new StackLayout(); Image verifyimage = new Image { HeightRequest = Application.Current.MainPage.Width / 4, WidthRequest = Application.Current.MainPage.Width / 4, }; System.Diagnostics.Debug.WriteLine("Image point" + Application.Current.MainPage.Width / 4); Label verifyLabel = new Label() { TextColor = Color.Red }; Label thanksLabel = new Label() { TextColor = Color.Red }; var muaspButton = new Button { Text = "MUA SẢN PHẨM", TextColor = Color.White, BackgroundColor = Color.FromHex(Constants.ColorPrimary), IsVisible = App.Bought }; string verifyLabelText = "", thanksLabelText = ""; stack1.Children.Add(verifyimage); stack1.Children.Add(verifyLabel); stack1.Children.Add(thanksLabel); layout.Children.Add(stack1); stack1.BackgroundColor = Color.White; stack1.Padding = paddingTB; layout.Spacing = 10; scroll.Content = layout; if (proapi.code == 444 || proapi.code == 400 || proapi.code == 445) { verifyimage.Source = "icon_result_2"; verifyLabelText = "SẢN PHẨM KHÔNG CÓ TRONG HỆ THỐNG"; thanksLabelText = "Bạn hãy cẩn thận"; verifyLabel.Text = verifyLabelText; verifyLabel.FontSize = Device.GetNamedSize(NamedSize.Medium, typeof(Label)); verifyLabel.HorizontalOptions = LayoutOptions.CenterAndExpand; thanksLabel.Text = thanksLabelText; thanksLabel.FontSize = Device.GetNamedSize(NamedSize.Small, typeof(Label)); thanksLabel.HorizontalOptions = LayoutOptions.CenterAndExpand; } else { if (dataresult.product.ite_status == "3") { verifyimage.Source = "icon_result_3"; verifyLabelText = "SẢN PHẨM CHÍNH HÃNG"; thanksLabelText = "Cảm ơn bạn đã mua hàng"; verifyLabel.TextColor = Color.Green; thanksLabel.TextColor = Color.Green; App.Bought = true; } else if (dataresult.product.ite_status != "3" && proapi.changed == 0) { verifyimage.Source = "icon_result_1"; verifyLabelText = "SẢN PHẨM ĐÃ ĐƯỢC MUA"; thanksLabelText = "Ngày bán: " + pro.ite_soldtime; App.Bought = false; } else if (dataresult.product.ite_status != "3" && proapi.changed == 1) { verifyimage.Source = "icon_result_1"; verifyLabelText = "XIN CẢM ƠN BẠN ĐÃ MUA HÀNG"; thanksLabelText = "Vào lúc: " + pro.ite_soldtime; verifyLabel.TextColor = Color.Green; thanksLabel.TextColor = Color.Green; App.Bought = true; } Debug.WriteLine(verifyimage.Source.ToString()); verifyLabel.Text = verifyLabelText; verifyLabel.FontSize = Device.GetNamedSize(NamedSize.Medium, typeof(Label)); verifyLabel.FontAttributes = FontAttributes.Bold; verifyLabel.HorizontalOptions = LayoutOptions.CenterAndExpand; thanksLabel.Text = thanksLabelText; thanksLabel.FontSize = Device.GetNamedSize(NamedSize.Small, typeof(Label)); thanksLabel.HorizontalOptions = LayoutOptions.CenterAndExpand; //Ảnh sản phẩm var proimage = new Image() { WidthRequest = App.Current.MainPage.Width / 3 }; if (dataresult.image != "") { proimage = new Image(); try { byte[] proimageBytes = Convert.FromBase64String(dataresult.image); proimage.Source = ImageSource.FromStream( () => new MemoryStream(proimageBytes)); } catch { proimage.Source = "icon_default"; } } else { proimage.Source = "icon_default"; } //Nội dung sản phẩm var productdetailStack = new StackLayout(); var itemnameLabel = new Label { Text = pro.pro_name, TextColor = Color.Black }; itemnameLabel.FontAttributes = FontAttributes.Bold; var stackitemcodeLabel = new StackLayout() { Orientation = StackOrientation.Horizontal }; var maSPLabel = new Label { Text = "Mã SP: ", TextColor = Color.Black, FontAttributes = FontAttributes.Bold }; var itemcodeLabel = new Label { Text = itemcode, TextColor = Color.Black }; var hotlineLabel = new Label { Text = "Hotline: " + hotline, TextColor = Color.Black }; stackitemcodeLabel.Children.Add(maSPLabel); stackitemcodeLabel.Children.Add(itemcodeLabel); productdetailStack.Children.Add(itemnameLabel); productdetailStack.Children.Add(stackitemcodeLabel); productdetailStack.Children.Add(hotlineLabel); productdetailStack.Children.Add(muaspButton); var grid = new Grid(); grid.RowDefinitions.Add(new RowDefinition { Height = Application.Current.MainPage.Width / 3 }); grid.ColumnDefinitions.Add(new ColumnDefinition { Width = new GridLength(2, GridUnitType.Star) }); grid.ColumnDefinitions.Add(new ColumnDefinition { Width = new GridLength(3, GridUnitType.Star) }); grid.Children.Add(proimage, 0, 0); grid.Children.Add(productdetailStack, 1, 0); var stack2 = new StackLayout(); stack2.Children.Add(grid); stack2.Padding = paddingTB; stack2.BackgroundColor = Color.White; layout.Children.Add(stack2); var stackprivate = new StackLayout(); if (App.sessionId != null) { var privatetitle = new Label { Text = "THÔNG TIN NỘI BỘ", FontSize = Device.GetNamedSize(NamedSize.Medium, typeof(Label)), FontAttributes = FontAttributes.Bold, TextColor = Color.Black }; var privategapBoxView = new BoxView { Color = Color.Gray, HeightRequest = 1, WidthRequest = (Application.Current.MainPage.Width / 7) * 6, VerticalOptions = LayoutOptions.Center }; var private_z = new Label() { Text = dataresult.product.private_z, FontSize = Device.GetNamedSize(NamedSize.Small, typeof(Label)), //FontAttributes = FontAttributes.Bold, TextColor = Color.Black }; stackprivate.Children.Add(privatetitle); stackprivate.Children.Add(privategapBoxView); stackprivate.Children.Add(private_z); stackprivate.Padding = paddingTLR; stackprivate.BackgroundColor = Color.White; layout.Children.Add(stackprivate); } //Thông tin chi tiết sản phẩm var stack3 = new StackLayout(); var productdetailWebView = new WebView { Source = new HtmlWebViewSource { Html = @"<html><body>" + dataresult.product.pro_detail + "</body></html>" }, HeightRequest = 250, //MinimumHeightRequest = 100, WidthRequest = 1000 }; var productdetailtitleLabel = new Label { Text = "THÔNG TIN SẢN PHẨM", FontSize = Device.GetNamedSize(NamedSize.Medium, typeof(Label)), FontAttributes = FontAttributes.Bold, TextColor = Color.Black }; stack3.Children.Add(productdetailtitleLabel); var gapBoxView1 = new BoxView { Color = Color.Gray, HeightRequest = 1, WidthRequest = (Application.Current.MainPage.Width / 7) * 6, VerticalOptions = LayoutOptions.Center }; stack3.Children.Add(gapBoxView1); stack3.Children.Add(productdetailWebView); stack3.Padding = paddingTLR; stack3.BackgroundColor = Color.White; layout.Children.Add(stack3); //Mô tả công ty var stack4 = new StackLayout(); var companydetailview = new StackLayout(); var companytitleLabel = new Label { Text = "DOANH NGHIỆP SỞ HỮU", FontSize = Device.GetNamedSize(NamedSize.Medium, typeof(Label)), FontAttributes = FontAttributes.Bold, TextColor = Color.Black }; companydetailview.Children.Add(companytitleLabel); var gapBoxView = new BoxView { Color = Color.Gray, HeightRequest = 1, WidthRequest = (Application.Current.MainPage.Width / 7) * 6, VerticalOptions = LayoutOptions.Center }; companydetailview.Children.Add(gapBoxView); var companynameLabel = new Label { Text = "Tên công ty: " + dataresult.company.name, TextColor = Color.Black }; companydetailview.Children.Add(companynameLabel); var companyaddressLabel = new Label { Text = "Địa chỉ: " + dataresult.company.addr, TextColor = Color.Black }; companydetailview.Children.Add(companyaddressLabel); var companyphoneLabel = new Label { Text = "Điện thoại: " + dataresult.company.mobile, TextColor = Color.Black }; companydetailview.Children.Add(companyphoneLabel); var companyemailLabel = new Label { Text = "Email: " + dataresult.company.email, TextColor = Color.Black }; companydetailview.Children.Add(companyemailLabel); var companywebsiteLabel = new Label { Text = "Website: " + dataresult.company.website, TextColor = Color.Black }; companydetailview.Children.Add(companywebsiteLabel); stack4.Children.Add(companydetailview); var endBoxView = new BoxView { BackgroundColor = Color.FromHex(color_theme), HeightRequest = 50 }; stack4.Padding = paddingTLR; stack4.BackgroundColor = Color.White; layout.Children.Add(stack4); layout.Children.Add(endBoxView); //Lưu dự liệu scan vào lịch sử //DateTime now = DateTime.Now.ToLocalTime(); string datestring = DateTime.Now.ToString("dd/MM/yy HH:mm:ss tt", System.Globalization.CultureInfo.InvariantCulture); Debug.WriteLine(datestring); HistoryScanItem scannedItem = new HistoryScanItem() { itemcode = itemcode, itemname = pro.pro_name, itemimage = image.image, companyname = com.name, datetime = datestring }; Debug.WriteLine("active database"); //App.HDatabase.DeleteAllAsync(); await App.HDatabase.SaveItemAsync(scannedItem); App.AppHSI.Insert(0, scannedItem);//xử lý listview android Debug.WriteLine("database save done!"); disback = false; muaspButton.Clicked += async delegate(object sender, EventArgs e) { //var confirmgrid = grid; await Navigation.PushPopupAsync(new BuyDialog(dataresult.image, itemcode, hotline, pro.pro_name)); }; //var locationresp; Debug.WriteLine("active location"); var location = new LocationAPI(); Device.BeginInvokeOnMainThread(async() => { location = await App.SvLocationManager.GetLocationAsync(); try { await App.SvLocationManager.UpdateLocationAsync(location, true, itemcode); } catch (Exception ex) { Debug.WriteLine("ko lưu đc location " + ex); } } ); Device.StartTimer(TimeSpan.FromSeconds(0.1), () => { // Do something //Debug.WriteLine("Chỉ số đã mua: " + App.Bought); if (App.Bought == false) { muaspButton.IsVisible = false; } //Nút mua sẽ luôn hiển thị khi giá trị bought là false (đã mua) if (App.Bought == false && App.soldtime != null) { //giá trị text chỉ thực hiện thay đổi sau khi đã click vào nút mua tức giá trị soldtime sẽ thay đổi //App soldtime sẽ được khai báo null khi tạo mới một resultpage và sẽ được gán giá trị mới khi click vào mua hàng //verifyimage.Source = "icon_result_1"; verifyLabel.Text = "XIN CẢM ƠN BẠN ĐÃ MUA HÀNG"; thanksLabel.Text = "Ngày bán: " + App.soldtime; return(false); } return(true); // True = Repeat again, False = Stop the timer }); } Content = scroll; } catch (Exception ex) { Debug.WriteLine(ex); Debug.WriteLine("Type" + ex.GetType()); if (ex.GetType().ToString() == "System.NotImplementedException") { CheckLoadingInit(itemcode); } Content = SetErrorPage(); } }
protected void Page_Load(object sender, EventArgs e) { //create callback to get access token and request tokem LoginRadiusCallback callback = new LoginRadiusCallback(); //If Request as LoginRadius callback, after user successfully loggedin on provider. if (callback.IsCallback) { //To get access token with the help of loginradius "api secret" var accessToken = callback.GetAccessToken(ConfigurationManager.AppSettings["apisecret"].ToString()); //save token to session for further use Session["token"] = accessToken; try { //create client with the help of access token as parameter LoginRadiusClient client = new LoginRadiusClient(accessToken); //create object to execute user profile api to get user profile data. UserProfileAPI userprofile = new UserProfileAPI(); //To get ultimate user profile data with the help of user profile api object as parameter. // and pass "LoginRadiusUltimateUserProfile" model as interface to map user profile data. var userProfileData = client.GetResponse <LoginRadiusUltimateUserProfile>(userprofile); if (userProfileData.Provider.ToLower() == "facebook" || userProfileData.Provider.ToLower() == "twitter" || userProfileData.Provider.ToLower() == "linkedin") { postmessage.Visible = true; } else { postmessage.Visible = false; } if (userProfileData.Provider.ToLower() == "twitter" || userProfileData.Provider.ToLower() == "linkedin") { directmessage.Visible = true; } else { directmessage.Visible = false; } name.Text = "<b>Full Name : </b>" + userProfileData.FullName; if (userProfileData.Email != null) { emailid.Text = "<b>Email ID : </b>" + userProfileData.Email[0].Value; } about.Text = "<b>About : </b>" + userProfileData.About; if (userProfileData.ImageUrl != null && userProfileData.ImageUrl != "") { userprofileimage.ImageUrl = userProfileData.ImageUrl; } else { userprofileimage.ImageUrl = "Content/images/no_image.png"; } if (userProfileData.ID != null) { Truserid.Visible = true; } if (userProfileData.Gender != null) { Trgender.Visible = true; } if (userProfileData.Provider != null) { Trprovider.Visible = true; } if (userProfileData.ProfileName != null) { TrProfileName.Visible = true; } if (userProfileData.Age != null) { Trage.Visible = true; } if (userProfileData.Quota != null) { Trquota.Visible = true; } if (userProfileData.MainAddress != null) { TrMainAddress.Visible = true; } if (userProfileData.HomeTown != null) { TrHomeTown.Visible = true; } if (userProfileData.PhoneNumbers != null) { TrPhoneNumbers.Visible = true; } if (userProfileData.ProfileCountry != null) { TrProfileCountry.Visible = true; } if (userProfileData.ProfileUrl != null) { TrProfileUrl.Visible = true; } if (userProfileData.Religion != null) { TrReligion.Visible = true; } if (userProfileData.RelationshipStatus != null) { TrRelationshipStatus.Visible = true; } if (userProfileData.State != null) { TrState.Visible = true; } if (userProfileData.TimeZone != null) { Trtimezone.Visible = true; } if (userProfileData.LocalLanguage != null) { Trlocallanguage.Visible = true; } if (userProfileData.Website != null) { Trwebsite.Visible = true; } if (userProfileData.BirthDate != null) { Trdateofbirth.Visible = true; } gender.Text = userProfileData.Gender; age.Text = userProfileData.Age; dateofbirth.Text = userProfileData.BirthDate; website.Text = userProfileData.Website; locallanguage.Text = userProfileData.LocalLanguage; timezone.Text = userProfileData.TimeZone; State.Text = userProfileData.State; RelationshipStatus.Text = userProfileData.RelationshipStatus; Religion.Text = userProfileData.Religion; ProfileCountry.Text = userProfileData.ProfileCountry; ProfileUrl.Text = userProfileData.ProfileUrl; HomeTown.Text = userProfileData.HomeTown; MainAddress.Text = userProfileData.MainAddress; userid.Text = userProfileData.ID; provider.Text = userProfileData.Provider; localcity.Text = userProfileData.LocalCity; localcountry.Text = userProfileData.LocalCountry; ProfileName.Text = userProfileData.ProfileName; quota.Text = userProfileData.Quota; if (userProfileData.Addresses != null) { address.Visible = true; } if (userProfileData.Positions != null) { position.Visible = true; } if (userProfileData.Educations != null) { educationss.Visible = true; } positions.DataSource = userProfileData.Positions; positions.DataBind(); educations.DataSource = userProfileData.Educations; educations.DataBind(); addresses.DataSource = userProfileData.Addresses; addresses.DataBind(); //create object to execute album api to get albums AlbumAPI albums = new AlbumAPI(); //To get albums data with the help of album api object as parameter. // and pass "LoginRadiusAlbum" model as interface to map album data. var userAlbums = client.GetResponse <List <LoginRadiusAlbum> >(albums); Album.DataSource = userAlbums != null ? userAlbums : null; Album.DataBind(); //create object to execute audio api to get audios AudioAPI audios = new AudioAPI(); //To get audios data with the help of audio api object as parameter. // and pass "LoginRadiusAudio" model as interface to map audio data. var userAudios = client.GetResponse <List <LoginRadiusAudio> >(audios); Audio.DataSource = userAudios != null ? userAudios : null; Audio.DataBind(); //create object to execute checkin api to get checkins CheckInAPI checkins = new CheckInAPI(); //To get checkins data with the help of checkin api object as parameter. // and pass "LoginRadiusCheckIn" model as interface to map checkin data. var userCheckins = client.GetResponse <List <LoginRadiusCheckIn> >(checkins); CheckIn.DataSource = userCheckins != null ? userCheckins : null; CheckIn.DataBind(); //create object to execute company api to get companies CompanyAPI companies = new CompanyAPI(); //To get companies data with the help of company api object as parameter. // and pass "LoginRadiusCompany" model as interface to map company data. var userCompanies = client.GetResponse <List <LoginRadiusCompany> >(companies); Company.DataSource = userCompanies != null ? userCompanies : null; Company.DataBind(); //create object to execute contact api to get contacts ContactAPI contacts = new ContactAPI(); //To get contacts data with the help of contact api object as parameter. // and pass "LoginRadiusContact" model as interface to map contact data. var userContacts = client.GetResponse <LoginRadiusCursorResponse <LoginRadiusContact> >(contacts); Contact.DataSource = userContacts != null ? userContacts.Data : null; Contact.DataBind(); //create object to execute event api to get events EventAPI events = new EventAPI(); //To get events data with the help of event api object as parameter. // and pass "LoginRadiusEvent" model as interface to map event data. var userEvents = client.GetResponse <List <LoginRadiusEvent> >(events); Event.DataSource = userEvents != null ? userEvents : null; Event.DataBind(); //create object to execute following api to get followings FollowingAPI followings = new FollowingAPI(); //To get followings data with the help of following api object as parameter. // and pass "LoginRadiusFollowing" model as interface to map following data. var userFollowings = client.GetResponse <List <LoginRadiusFollowing> >(followings); Following.DataSource = userFollowings != null ? userFollowings : null; Following.DataBind(); //create object to execute group api to get groups GroupAPI groups = new GroupAPI(); //To get groups data with the help of group api object as parameter. // and pass "LoginRadiusGroup" model as interface to map group data. var userGroups = client.GetResponse <List <LoginRadiusGroup> >(groups); Group.DataSource = userGroups != null ? userGroups : null; Group.DataBind(); //create object to execute like api to get likes LikeAPI likes = new LikeAPI(); //To get likes data with the help of like api object as parameter. // and pass "LoginRadiusLike" model as interface to map like data. var userLikes = client.GetResponse <List <LoginRadiusLike> >(likes); Like.DataSource = userLikes != null ? userLikes : null; Like.DataBind(); //create object to execute mention api to get mentions MentionAPI mentions = new MentionAPI(); //To get mentions data with the help of mention api object as parameter. // and pass "LoginRadiusMention" model as interface to map mention data. var userMentions = client.GetResponse <List <LoginRadiusMention> >(mentions); Mention.DataSource = userMentions != null ? userMentions : null; Mention.DataBind(); //create object to execute page api to get pages PageAPI pages = new PageAPI(); //To get pages data with the help of page api object as parameter. // and pass "LoginRadiusPage" model as interface to map page data. var userPages = client.GetResponse <List <LoginRadiusPage> >(pages); Pages.DataSource = userPages != null ? userPages : null; Pages.DataBind(); //create object to execute photo api to get photos PhotoAPI photos = new PhotoAPI(); //To get photos data with the help of photo api object as parameter. // and pass "LoginRadiusPhoto" model as interface to map photo data. var userPhotos = client.GetResponse <List <LoginRadiusPhoto> >(photos); Photo.DataSource = userPhotos != null ? userPhotos : null; Photo.DataBind(); //create object to execute post api to get posts PostAPI posts = new PostAPI(); //To get posts data with the help of post api object as parameter. // and pass "LoginRadiusPost" model as interface to map post data. var userPosts = client.GetResponse <List <LoginRadiusPost> >(posts); Post.DataSource = userPosts != null ? userPosts : null; Post.DataBind(); //create object to execute status api to get statuses StatusAPI statuses = new StatusAPI(); //To get statuses data with the help of status api object as parameter. // and pass "LoginRadiusStatus" model as interface to map status data. var userStatuses = client.GetResponse <List <LoginRadiusStatus> >(statuses); Statuses.DataSource = userStatuses != null ? userStatuses : null; Statuses.DataBind(); //create object to execute video api to get videos VideoAPI videos = new VideoAPI(); //To get videos data with the help of video api object as parameter. // and pass "LoginRadiusVideo" model as interface to map video data. var userVideos = client.GetResponse <List <LoginRadiusVideo> >(videos); Video.DataSource = userVideos != null ? userVideos : null; Video.DataBind(); } catch (Exception ee) { Response.Write(ee.StackTrace); } } }