@@ -554,6 +554,100 @@ public void CanGetEventWithMeetingUrl()
554
554
events ) ;
555
555
}
556
556
557
+ [ Test ]
558
+ public void CanGetEventWithExtendedTransparency ( )
559
+ {
560
+ this . Http . Stub (
561
+ HttpGet
562
+ . Url ( "https://api.cronofy.com/v1/events?tzid=Etc%2FUTC&localized_times=true" )
563
+ . RequestHeader ( "Authorization" , "Bearer " + AccessToken )
564
+ . ResponseCode ( 200 )
565
+ . ResponseBody (
566
+ @"{
567
+ ""pages"": {
568
+ ""current"": 1,
569
+ ""total"": 1
570
+ },
571
+ ""events"": [
572
+ {
573
+ ""calendar_id"": ""cal_U9uuErStTG@EAAAB_IsAsykA2DBTWqQTf-f0kJw"",
574
+ ""event_uid"": ""evt_external_54008b1a4a41730f8d5c6037"",
575
+ ""summary"": ""Company Retreat"",
576
+ ""description"": ""Escape to the country"",
577
+ ""start"": ""2014-09-06"",
578
+ ""end"": ""2014-09-08"",
579
+ ""deleted"": false,
580
+ ""recurring"": true,
581
+ ""series_identifier"": ""identifier"",
582
+ ""participation_status"": ""needs_action"",
583
+ ""transparency"": ""opaque"",
584
+ ""extended_transparency"": ""working_elsewhere"",
585
+ ""status"": ""confirmed"",
586
+ ""categories"": [],
587
+ ""attendees"": [
588
+ {
589
+
590
+ ""display_name"": ""Example Person"",
591
+ ""status"": ""needs_action""
592
+ }
593
+ ],
594
+ ""created"": ""2014-09-01T08:00:01Z"",
595
+ ""updated"": ""2014-09-01T09:24:16Z"",
596
+ ""options"": {
597
+ ""delete"": true,
598
+ ""update"": true,
599
+ ""change_participation_status"": true
600
+ },
601
+ ""meeting_url"": ""https://meet.example.com/ABCD1234""
602
+ }
603
+ ]
604
+ }" ) ) ;
605
+
606
+ var events = this . Client . GetEvents ( ) ;
607
+
608
+ CollectionAssert . AreEqual (
609
+ new List < Event >
610
+ {
611
+ new Event
612
+ {
613
+ CalendarId = "cal_U9uuErStTG@EAAAB_IsAsykA2DBTWqQTf-f0kJw" ,
614
+ EventUid = "evt_external_54008b1a4a41730f8d5c6037" ,
615
+ Summary = "Company Retreat" ,
616
+ Description = "Escape to the country" ,
617
+ Start = new EventTime ( new Date ( 2014 , 9 , 6 ) , "Etc/UTC" ) ,
618
+ End = new EventTime ( new Date ( 2014 , 9 , 8 ) , "Etc/UTC" ) ,
619
+ Location = null ,
620
+ Deleted = false ,
621
+ Recurring = true ,
622
+ SeriesIdentifier = "identifier" ,
623
+ ParticipationStatus = AttendeeStatus . NeedsAction ,
624
+ Transparency = Transparency . Opaque ,
625
+ ExtendedTransparency = ExtendedTransparency . WorkingElsewhere ,
626
+ EventStatus = EventStatus . Confirmed ,
627
+ Categories = new string [ ] { } ,
628
+ Created = new DateTime ( 2014 , 9 , 1 , 8 , 0 , 1 , DateTimeKind . Utc ) ,
629
+ Updated = new DateTime ( 2014 , 9 , 1 , 9 , 24 , 16 , DateTimeKind . Utc ) ,
630
+ Attendees = new [ ]
631
+ {
632
+ new Attendee
633
+ {
634
+
635
+ DisplayName = "Example Person" ,
636
+ Status = AttendeeStatus . NeedsAction ,
637
+ } ,
638
+ } ,
639
+ Options = new EventOptions ( )
640
+ {
641
+ Delete = true ,
642
+ Update = true ,
643
+ ChangeParticipationStatus = true ,
644
+ } ,
645
+ MeetingUrl = "https://meet.example.com/ABCD1234" ,
646
+ } ,
647
+ } ,
648
+ events ) ;
649
+ }
650
+
557
651
[ Test ]
558
652
public void CanGetEventWithOldAuditTimes ( )
559
653
{
0 commit comments