当前位置: 首页>>代码示例>>C#>>正文


C# Flickr.PeopleFindByEmail方法代码示例

本文整理汇总了C#中FlickrNet.Flickr.PeopleFindByEmail方法的典型用法代码示例。如果您正苦于以下问题:C# Flickr.PeopleFindByEmail方法的具体用法?C# Flickr.PeopleFindByEmail怎么用?C# Flickr.PeopleFindByEmail使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在FlickrNet.Flickr的用法示例。


在下文中一共展示了Flickr.PeopleFindByEmail方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: LoadContent

        //public ActionResult LoadContent(string dirName, string pageName)
        //{
        //    var page = ContentService.GetPage(dirName, pageName);
        //    if (page == null) page = new Content();
        //    if (pageName == "index") return View("Index");
        //    else return View("Content", page);
        //}
        public ActionResult LoadContent(string pageName)
        {
            pageName = pageName.ToLower();

            if (pageName == "index")
            {
                var im = new IndexModel();
                var blm = new BlogListModel();
                var posts = BlogService.GetLatestPosts(5);

                blm.ListTitle = "NEWSFLASH";
                blm.Posts = posts;

                im.BlogList = blm;

                return View(pageName, im);
            }
            else if (pageName == "juniors")
            {
                var jm = new JuniorsModel();
                var blm = new BlogListModel();
                var posts = BlogService.GetPostsByCategory("juniors");

                blm.ListTitle = "JUNIORS UPDATES";
                blm.Posts = posts;

                jm.BlogList = blm;

                return View(pageName, jm);
            }
            else if (pageName == "adults")
            {
                var am = new AdultsModel();
                var blm = new BlogListModel();
                var posts = BlogService.GetPostsByCategory("adults");

                blm.ListTitle = "ADULTS UPDATES";
                blm.Posts = posts;

                am.BlogList = blm;

                return View(pageName, am);
            }
            else if (pageName == "construction")
            {
                var cm = new ConstructionModel();
                var blm = new BlogListModel();
                var posts = BlogService.GetPostsByCategory("construction");

                blm.ListTitle = "CONSTRUCTION UPDATES";
                blm.Posts = posts;

                cm.BlogList = blm;

                return View(pageName, cm);
            }
            else if (pageName == "about-us")
            {
                var am = new AboutUsModel();
                var blm = new BlogListModel();
                var posts = BlogService.GetPostsByCategory("general");

                blm.ListTitle = "CLUB NEWS";
                blm.Posts = posts;

                am.BlogList = blm;

                return View(pageName, am);

            }
            else if (pageName == "gallery")
            {
                Flickr flickr = new Flickr(ConfigurationManager.AppSettings["FlickrKey"], ConfigurationManager.AppSettings["FlickrSecret"]);

                FoundUser user = flickr.PeopleFindByEmail("[email protected]");

                var photos = flickr.PhotosetsGetList(user.UserId);

                foreach (var set in photos)
                {
                    Response.Write(set.Title + "<br>");
                }

                return View(pageName);
            }
            else
            {
                return View(pageName);
            }
        }
开发者ID:jasona,项目名称:ManageTennis,代码行数:97,代码来源:ContentController.cs


注:本文中的FlickrNet.Flickr.PeopleFindByEmail方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。