Пример #1
0
        public void BundlingCards(string pAuthorizationCode, string pEmail)
        {
            IAuthenticator authenticator = Login(pAuthorizationCode, pEmail, String.Empty);
            MirrorService  service       = BuildService(authenticator);
            TimelineItem   item          = new TimelineItem();

            item.BundleId      = "1";
            item.IsBundleCover = true;
            StaticCard.AddHtml(item, "<div><img src='http://cdn.screenrant.com/wp-content/uploads/Oliver-Stone-Breaking-Bad.jpg' /> </div>");

            TimelineItem item2 = new TimelineItem();

            item2.BundleId = "1";
            StaticCard.AddHtml(item2, "<div><img src='http://images.amcnetworks.com/amctv.com/wp-content/uploads/2014/04/BB-explore-S4-980x551-clean.jpg' /> </div>");

            TimelineItem item3 = new TimelineItem();

            item3.BundleId = "1";
            StaticCard.AddHtml(item3, "<div><img src='http://cdn.self-titledmag.com/wp-content/uploads/2011/10/breaking-bad-will-return-to-amc-in-august.jpg' /> </div>");


            service.Timeline.Insert(item).Fetch();
            service.Timeline.Insert(item2).Fetch();
            service.Timeline.Insert(item3).Fetch();
        }
Пример #2
0
        public void ManuallyPaginatedCard(string pAuthorizationCode, string pEmail)
        {
            IAuthenticator authenticator = Login(pAuthorizationCode, pEmail, String.Empty);
            MirrorService  service       = BuildService(authenticator);
            TimelineItem   item          = new TimelineItem();

            string html = @"<article>
                             <section>
                               <p>First page</p>
                             </section>
                            </article>

                            <article>
                             <section>
                               <p>Second page</p>
                             </section>
                            </article>

                            <article>
                             <section>
                               <p>Third page</p>
                             </section>
                            </article>";


            StaticCard.AddHtml(item, html);
            service.Timeline.Insert(item).Fetch();
        }