414
414
messages, err := p.parseStatuses(resp)
415
415
c.Assert(err, IsNil)
416
416
c.Assert(len(messages), Equals, 2)
417
c.Check(messages[0].Notification.Card.Summary, Equals, "@spode mentioned you")
417
c.Check(messages[0].Notification.Card.Summary, Equals, "Andrew Spode Miller. @spode")
418
418
c.Check(messages[0].Notification.Card.Body, Equals, "@jasoncosta @themattharris Hey! Going to be in Frisco in October. Was hoping to have a meeting to talk about @thinkwall if you're around?")
419
c.Check(messages[1].Notification.Card.Summary, Equals, "@mikedroid mentioned you")
419
c.Check(messages[0].Notification.Card.Icon, Equals, "http://a0.twimg.com/profile_images/1227466231/spode-balloon-medium_normal.jpg")
420
c.Assert(len(messages[0].Notification.Card.Actions), Equals, 1)
421
c.Check(messages[0].Notification.Card.Actions[0], Equals, "https://mobile.twitter.com/spode/statuses/242613977966850048")
422
c.Check(messages[1].Notification.Card.Summary, Equals, "Mikey. @mikedroid")
420
423
c.Check(messages[1].Notification.Card.Body, Equals, "Got the shirt @jasoncosta thanks man! Loving the #twitter bird on the shirt :-)")
424
c.Check(messages[1].Notification.Card.Icon, Equals, "http://a0.twimg.com/profile_images/1305509670/chatMikeTwitter_normal.png")
425
c.Assert(len(messages[1].Notification.Card.Actions), Equals, 1)
426
c.Check(messages[1].Notification.Card.Actions[0], Equals, "https://mobile.twitter.com/mikedroid/statuses/242534402280783873")
421
427
c.Check(p.lastMentionId, Equals, int64(242613977966850048))
456
462
messages, err := p.parseDirectMessages(resp)
457
463
c.Assert(err, IsNil)
458
464
c.Assert(len(messages), Equals, 1)
459
c.Check(messages[0].Notification.Card.Summary, Equals, "@theSeanCook sent you a DM")
465
c.Check(messages[0].Notification.Card.Summary, Equals, "Sean Cook. @theSeanCook")
460
466
c.Check(messages[0].Notification.Card.Body, Equals, "booyakasha")
467
c.Check(messages[0].Notification.Card.Icon, Equals, "http://a0.twimg.com/profile_images/1751506047/dead_sexy_normal.JPG")
468
c.Assert(len(messages[0].Notification.Card.Actions), Equals, 1)
469
c.Check(messages[0].Notification.Card.Actions[0], Equals, "https://mobile.twitter.com/theSeanCook/messages")
461
470
c.Check(p.lastDirectMessageId, Equals, int64(240136858829479936))