public static function Deserialize($dto)
 {
     if ($dto === NULL) {
         return NULL;
     }
     $obj = new TestConnectionResponse();
     $obj->Message = Primitives::ReadString($dto->Message);
     return $obj;
 }
Exemplo n.º 2
0
 public static function Deserialize($dto)
 {
     if ($dto === NULL) {
         return NULL;
     }
     $obj = new FormTrackingDto();
     $obj->IpAddress = Primitives::ReadString($dto->IpAddress);
     $obj->PageUrl = Primitives::ReadString($dto->PageUrl);
     $obj->PageName = Primitives::ReadString($dto->PageName);
     $obj->HubpotTrackingCode = Primitives::ReadString($dto->HubpotTrackingCode);
     return $obj;
 }
Exemplo n.º 3
0
 public static function Deserialize($dto)
 {
     if ($dto === NULL) {
         return NULL;
     }
     $obj = new UserDetails();
     $obj->Id = Primitives::ReadString($dto->Id);
     $obj->LastName = Primitives::ReadString($dto->LastName);
     $obj->FirstName = Primitives::ReadString($dto->FirstName);
     $obj->Email = Primitives::ReadString($dto->Email);
     $obj->StudentDetails = StudentDetails::Deserialize($dto->StudentDetails);
     $obj->AgentUserDetails = AgentUserDetails::Deserialize($dto->AgentUserDetails);
     return $obj;
 }
Exemplo n.º 4
0
 public static function Deserialize($dto)
 {
     if ($dto === NULL) {
         return NULL;
     }
     $obj = new Teacher();
     $obj->Id = Primitives::ReadInt($dto->Id);
     $obj->FirstName = Primitives::ReadString($dto->FirstName);
     $obj->LastName = Primitives::ReadString($dto->LastName);
     $obj->EmailAddress = Primitives::ReadString($dto->EmailAddress);
     $obj->CentreId = Primitives::ReadInt($dto->CentreId);
     $obj->CentreName = Primitives::ReadString($dto->CentreName);
     $obj->IsDeleted = Primitives::ReadBoolean($dto->IsDeleted);
     return $obj;
 }
Exemplo n.º 5
0
 public static function Deserialize($dto)
 {
     if ($dto === NULL) {
         return NULL;
     }
     $obj = new Booking();
     $obj->CentreId = Primitives::ReadInt($dto->CentreId);
     $obj->CentreName = Primitives::ReadString($dto->CentreName);
     $obj->SchoolId = Primitives::ReadInt($dto->SchoolId);
     $obj->SchoolName = Primitives::ReadString($dto->SchoolName);
     $obj->StartDate = Primitives::ReadLocalDate($dto->StartDate);
     $obj->EndDate = Primitives::ReadLocalDate($dto->EndDate);
     $obj->HasArrived = Primitives::ReadBoolean($dto->HasArrived);
     return $obj;
 }
Exemplo n.º 6
0
 public static function Deserialize($dto)
 {
     if ($dto === NULL) {
         return NULL;
     }
     $obj = new Class0();
     $obj->Id = Primitives::ReadInt($dto->Id);
     $obj->Name = Primitives::ReadString($dto->Name);
     $obj->ClassLevel = Primitives::ReadString($dto->ClassLevel);
     $obj->ClassType = Primitives::ReadString($dto->ClassType);
     $obj->StartDate = Primitives::ReadLocalDate($dto->StartDate);
     $obj->EndDate = Primitives::ReadLocalDate($dto->EndDate);
     $obj->IsDeleted = Primitives::ReadBoolean($dto->IsDeleted);
     return $obj;
 }
Exemplo n.º 7
0
 public static function Deserialize($dto)
 {
     if ($dto === NULL) {
         return NULL;
     }
     $obj = new Student();
     $obj->Id = Primitives::ReadInt($dto->Id);
     $obj->FirstName = Primitives::ReadString($dto->FirstName);
     $obj->LastName = Primitives::ReadString($dto->LastName);
     $obj->EmailAddress = Primitives::ReadString($dto->EmailAddress);
     $obj->DateOfBirth = Primitives::ReadLocalDate($dto->DateOfBirth);
     $obj->NationalityId = Primitives::ReadInt($dto->NationalityId);
     $obj->NationalityName = Primitives::ReadString($dto->NationalityName);
     $obj->IsDeleted = Primitives::ReadBoolean($dto->IsDeleted);
     return $obj;
 }
Exemplo n.º 8
0
 public static function Deserialize($dto)
 {
     if ($dto === NULL) {
         return NULL;
     }
     $obj = new Lesson();
     $obj->Id = Primitives::ReadInt($dto->Id);
     $obj->ClassId = Primitives::ReadInt($dto->ClassId);
     $obj->TeacherId = Primitives::ReadInt($dto->TeacherId);
     $obj->RoomId = Primitives::ReadInt($dto->RoomId);
     $obj->RoomName = Primitives::ReadString($dto->RoomName);
     $obj->Date = Primitives::ReadLocalDate($dto->Date);
     $obj->StartTime = Primitives::ReadLocalTime($dto->StartTime);
     $obj->EndTime = Primitives::ReadLocalTime($dto->EndTime);
     $obj->IsDeleted = Primitives::ReadBoolean($dto->IsDeleted);
     return $obj;
 }
Exemplo n.º 9
0
 public static function Deserialize($dto)
 {
     if ($dto === NULL) {
         return NULL;
     }
     $obj = new AskAQuestionForm();
     $obj->FirstName = Primitives::ReadString($dto->FirstName);
     $obj->LastName = Primitives::ReadString($dto->LastName);
     $obj->Email = Primitives::ReadString($dto->Email);
     $obj->PhoneNumber = Primitives::ReadString($dto->PhoneNumber);
     $obj->Nationality = Primitives::ReadString($dto->Nationality);
     $obj->Course = Primitives::ReadString($dto->Course);
     $obj->HowDidYouHearAboutUs = Primitives::ReadString($dto->HowDidYouHearAboutUs);
     $obj->Message = Primitives::ReadString($dto->Message);
     $obj->Locale = Primitives::ReadString($dto->Locale);
     $obj->Tracking = FormTrackingDto::Deserialize($dto->Tracking);
     return $obj;
 }
Exemplo n.º 10
0
 public static function Deserialize($dto)
 {
     if ($dto === NULL) {
         return NULL;
     }
     $obj = new RequestAQuoteForm();
     $obj->Locale = Primitives::ReadString($dto->Locale);
     $obj->FirstName = Primitives::ReadString($dto->FirstName);
     $obj->LastName = Primitives::ReadString($dto->LastName);
     $obj->Gender = Primitives::ReadString($dto->Gender);
     $obj->DateOfBirth = Primitives::ReadLocalDate($dto->DateOfBirth);
     $obj->Nationality = Primitives::ReadString($dto->Nationality);
     $obj->CountryOfResidence = Primitives::ReadString($dto->CountryOfResidence);
     $obj->LevelOfEnglish = Primitives::ReadString($dto->LevelOfEnglish);
     $obj->Email = Primitives::ReadString($dto->Email);
     $obj->PhoneNumber = Primitives::ReadString($dto->PhoneNumber);
     $obj->HowDidYouHearAboutUs = Primitives::ReadString($dto->HowDidYouHearAboutUs);
     $obj->PreferredCentre = Primitives::ReadString($dto->PreferredCentre);
     $obj->Course = Primitives::ReadString($dto->Course);
     $obj->CourseStartDate = Primitives::ReadLocalDate($dto->CourseStartDate);
     $obj->LessonsPerWeek = Primitives::ReadInt($dto->LessonsPerWeek);
     $obj->CourseNumberOfWeeks = Primitives::ReadInt($dto->CourseNumberOfWeeks);
     $obj->Accommodation = Primitives::ReadString($dto->Accommodation);
     $obj->AccommodationRoomOption = Primitives::ReadString($dto->AccommodationRoomOption);
     $obj->AccommodationCateringOption = Primitives::ReadString($dto->AccommodationCateringOption);
     $obj->AccommodationBathroomOption = Primitives::ReadString($dto->AccommodationBathroomOption);
     $obj->AccommodationMiscOption = Primitives::ReadString($dto->AccommodationMiscOption);
     $obj->AccommodationNumberOfWeeks = Primitives::ReadInt($dto->AccommodationNumberOfWeeks);
     $obj->Message = Primitives::ReadString($dto->Message);
     $obj->SpecialRequirements = Primitives::ReadString($dto->SpecialRequirements);
     $obj->AcceptsTerms = Primitives::ReadBoolean($dto->AcceptsTerms);
     $obj->Tracking = FormTrackingDto::Deserialize($dto->Tracking);
     return $obj;
 }