Esempio n. 1
0
 public static function Example()
 {
     $date = Date::Now()->ToIso();
     $request = new ReservationRequest();
     $request->accessories = array(new ReservationAccessoryRequest(1, 2));
     $request->customAttributes = array(new AttributeValueRequest(2, 'some value'));
     $request->description = 'reservation description';
     $request->endDateTime = $date;
     $request->invitees = array(1, 2, 3);
     $request->participants = array(1, 2);
     $request->recurrenceRule = RecurrenceRequestResponse::Example();
     $request->resourceId = 1;
     $request->resources = array(2, 3);
     $request->startDateTime = $date;
     $request->title = 'reservation title';
     $request->userId = 1;
     $request->startReminder = ReminderRequestResponse::Example();
     return $request;
 }
Esempio n. 2
0
 public function __construct()
 {
     $this->accessories = array(ReservationAccessoryResponse::Example());
     $this->attachments = array(AttachmentResponse::Example());
     $this->customAttributes = array(CustomAttributeResponse::Example());
     $this->description = 'reservation description';
     $this->endDateTime = Date::Now()->ToIso();
     $this->invitees = array(ReservationUserResponse::Example());
     $this->isRecurring = true;
     $this->owner = ReservationUserResponse::Example();
     $this->participants = array(ReservationUserResponse::Example());
     $this->recurrenceRule = RecurrenceRequestResponse::Example();
     $this->referenceNumber = 'refnum';
     $this->requiresApproval = true;
     $this->resourceId = 123;
     $this->resources = array(ResourceItemResponse::Example());
     $this->scheduleId = 123;
     $this->startDateTime = Date::Now()->ToIso();
     $this->title = 'reservation title';
     $this->startReminder = ReminderRequestResponse::Example();
     $this->endReminder = ReminderRequestResponse::Example();
     $this->allowParticipation = true;
 }