Exemplo n.º 1
0
 public static function Deserialize($dto)
 {
     if ($dto === NULL) {
         return NULL;
     }
     $obj = new ChangeSet();
     $obj->Id = Primitives::ReadInt($dto->Id);
     return $obj;
 }
Exemplo n.º 2
0
 public static function Deserialize($dto)
 {
     if ($dto === NULL) {
         return NULL;
     }
     $obj = new AgentUserDetails();
     $obj->Id = Primitives::ReadInt($dto->Id);
     return $obj;
 }
Exemplo n.º 3
0
 public static function Deserialize($dto)
 {
     if ($dto === NULL) {
         return NULL;
     }
     $obj = new GelStudents();
     $obj->MinChangeSet = Primitives::ReadInt($dto->MinChangeSet);
     $obj->MaxChangeSet = Primitives::ReadInt($dto->MaxChangeSet);
     return $obj;
 }
Exemplo n.º 4
0
 public static function Deserialize($dto)
 {
     if ($dto === NULL) {
         return NULL;
     }
     $obj = new ClassAssignment();
     $obj->ClassId = Primitives::ReadInt($dto->ClassId);
     $obj->StartDate = Primitives::ReadLocalDate($dto->StartDate);
     $obj->EndDate = Primitives::ReadLocalDate($dto->EndDate);
     return $obj;
 }
Exemplo n.º 5
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.º 6
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.º 7
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.º 8
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.º 9
0
 public static function Deserialize($dto)
 {
     if ($dto === NULL) {
         return NULL;
     }
     $obj = new Attendance();
     $obj->BookingId = Primitives::ReadInt($dto->BookingId);
     $obj->StudentId = Primitives::ReadInt($dto->StudentId);
     $obj->TotalLessons = Primitives::ReadInt($dto->TotalLessons);
     $obj->LessonsToDate = Primitives::ReadInt($dto->LessonsToDate);
     $obj->LessonsToDateAbsent = Primitives::ReadInt($dto->LessonsToDateAbsent);
     $obj->TotalLessonMinutes = Primitives::ReadInt($dto->TotalLessonMinutes);
     $obj->LessonMinutesToDate = Primitives::ReadInt($dto->LessonMinutesToDate);
     $obj->LessonMinutesToDateAbsent = Primitives::ReadInt($dto->LessonMinutesToDateAbsent);
     $obj->IsDeleted = Primitives::ReadBoolean($dto->IsDeleted);
     return $obj;
 }
Exemplo n.º 10
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.º 11
0
 public function testCanReadInt()
 {
     $intRead = Primitives::ReadInt('33');
     $this->assertEquals(33, $intRead);
 }
Exemplo n.º 12
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;
 }