var calendarSaveRequest = new CalendarSaveRequest
{
StorageFile = new StorageFileLocation
{
FileName = "calendar.ics",
Storage = "First Storage",
FolderPath = "file/location/folder/on/storage"
},
Value = new CalendarDto
{
Attendees = new List<MailAddress>
{
new MailAddress
{
DisplayName = "Attendee Name",
Address = "attendee@aspose.com",
ParticipationStatus = "Accepted"
}
},
Description = "Some description",
EndDate = DateTime.Today,
Location = "Some location",
Organizer = new MailAddress
{
DisplayName = "Organizer Name",
Address = "organizer@aspose.com"
},
Recurrence = new DailyRecurrencePatternDto
{
Interval = -1,
Occurs = 10,
WeekStart = "Monday"
},
StartDate = DateTime.Today,
Summary = "Some summary"
}
};
CalendarSaveRequest calendarSaveRequest = Models.calendarSaveRequest()
.storageFile(Models.storageFileLocation()
.fileName("calendar.ics")
.storage("First Storage")
.folderPath("file/location/folder/on/storage")
.build())
.value(Models.calendarDto()
.attendees(Arrays.<MailAddress>asList(
Models.mailAddress()
.displayName("Attendee Name")
.address("attendee@aspose.com")
.participationStatus("Accepted")
.build()))
.description("Some description")
.endDate(Calendar.getInstance().getTime())
.location("Some location")
.organizer(Models.mailAddress()
.displayName("Organizer Name")
.address("organizer@aspose.com")
.build())
.recurrence(Models.dailyRecurrencePatternDto()
.interval(-1)
.occurs(10)
.weekStart("Monday")
.build())
.startDate(Calendar.getInstance().getTime())
.summary("Some summary")
.build())
.build();
calendar_save_request = models.CalendarSaveRequest(
storage_file=models.StorageFileLocation(
file_name='calendar.ics',
storage='First Storage',
folder_path='file/location/folder/on/storage'),
value=models.CalendarDto(
attendees=[
models.MailAddress(
display_name='Attendee Name',
address='attendee@aspose.com',
participation_status='Accepted')],
description='Some description',
end_date=datetime.today(),
location='Some location',
organizer=models.MailAddress(
display_name='Organizer Name',
address='organizer@aspose.com'),
recurrence=models.DailyRecurrencePatternDto(
interval=-1,
occurs=10,
week_start='Monday'),
start_date=datetime.today(),
summary='Some summary'))
calendar_save_request = CalendarSaveRequest.new(
storage_file: StorageFileLocation.new(
file_name: 'calendar.ics',
storage: 'First Storage',
folder_path: 'file/location/folder/on/storage'),
value: CalendarDto.new(
attendees: [
MailAddress.new(
display_name: 'Attendee Name',
address: 'attendee@aspose.com',
participation_status: 'Accepted')],
description: 'Some description',
end_date: DateTime.now,
location: 'Some location',
organizer: MailAddress.new(
display_name: 'Organizer Name',
address: 'organizer@aspose.com'),
recurrence: DailyRecurrencePatternDto.new(
interval: -1,
occurs: 10,
week_start: 'Monday'),
start_date: DateTime.now,
summary: 'Some summary'))
let calendarSaveRequest = Models.calendarSaveRequest()
.storageFile(Models.storageFileLocation()
.fileName('calendar.ics')
.storage('First Storage')
.folderPath('file/location/folder/on/storage')
.build())
.value(Models.calendarDto()
.attendees([
Models.mailAddress()
.displayName('Attendee Name')
.address('attendee@aspose.com')
.participationStatus('Accepted')
.build()])
.description('Some description')
.endDate(new Date())
.location('Some location')
.organizer(Models.mailAddress()
.displayName('Organizer Name')
.address('organizer@aspose.com')
.build())
.recurrence(Models.dailyRecurrencePatternDto()
.interval(-1)
.occurs(10)
.weekStart('Monday')
.build())
.startDate(new Date())
.summary('Some summary')
.build())
.build();
$calendarSaveRequest = Models::calendarSaveRequest()
->storageFile(Models::storageFileLocation()
->fileName('calendar.ics')
->storage('First Storage')
->folderPath('file/location/folder/on/storage')
->build())
->value(Models::calendarDto()
->attendees(array(
Models::mailAddress()
->displayName('Attendee Name')
->address('attendee@aspose.com')
->participationStatus('Accepted')
->build()))
->description('Some description')
->endDate(new DateTime())
->location('Some location')
->organizer(Models::mailAddress()
->displayName('Organizer Name')
->address('organizer@aspose.com')
->build())
->recurrence(Models::dailyRecurrencePatternDto()
->interval(-1)
->occurs(10)
->weekStart('Monday')
->build())
->startDate(new DateTime())
->summary('Some summary')
->build())
->build();