Пример #1
0
 public static CalendarWrapper GetSample()
 {
     return(new CalendarWrapper
     {
         CanEditTimeZone = false,
         TimeZoneInfo = TimeZoneWrapper.GetSample(),
         DefaultAlertType = EventAlertWrapper.GetSample(),
         Events = new List <EventWrapper>()
         {
             EventWrapper.GetSample()
         },
         Owner = UserParams.GetSample(),
         Id = "1",
         Title = "Calendar Name",
         Description = "Calendar Description",
         BackgroundColor = "#000000",
         TextColor = "#ffffff",
         IsEditable = true,
         Permissions = CalendarPermissions.GetSample(),
         IsShared = true,
         CanAlertModify = true,
         IsHidden = false,
         IsiCalStream = false,
         IsSubscription = false
     });
 }
Пример #2
0
 public static object GetSample()
 {
     return(new
     {
         canEditTimeZone = false,
         timeZone = TimeZoneWrapper.GetSample(),
         defaultAlert = EventAlertWrapper.GetSample(),
         events = new List <object>()
         {
             EventWrapper.GetSample()
         },
         owner = UserParams.GetSample(),
         objectId = "1",
         title = "Calendar Name",
         description = "Calendar Description",
         backgroundColor = "#000000",
         textColor = "#ffffff",
         isEditable = true,
         permissions = CalendarPermissions.GetSample(),
         isShared = true,
         canAlertModify = true,
         isHidden = false,
         isiCalStream = false,
         isSubscription = false
     });
 }