Advertisement
hasancse1991

Untitled

Apr 23rd, 2020
849
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Kotlin 3.46 KB | None | 0 0
  1. package com.softlabinc.hems.data.model
  2.  
  3. import com.google.gson.annotations.SerializedName
  4. import androidx.annotation.Keep
  5.  
  6. @Keep
  7. data class CollegeResponse(
  8.     @SerializedName("code")
  9.     val code: Int = 0,
  10.     @SerializedName("message")
  11.     val message: String = "",
  12.     @SerializedName("data")
  13.     val collegeData: List<CollegeData> = listOf()
  14. ) {
  15.     @Keep
  16.     data class CollegeData(
  17.         @SerializedName("collegeId")
  18.         val collegeId: Int = 0,
  19.         @SerializedName("campusPhotoPath")
  20.         val campusPhotoPath: String = "",
  21.         @SerializedName("provinceId")
  22.         val provinceId: Int = 0,
  23.         @SerializedName("provinceName")
  24.         val provinceName: String = "",
  25.         @SerializedName("districtId")
  26.         val districtId: Int = 0,
  27.         @SerializedName("districtName")
  28.         val districtName: String = "",
  29.         @SerializedName("municipalityId")
  30.         val municipalityId: Int = 0,
  31.         @SerializedName("municipalityName")
  32.         val municipalityName: String = "",
  33.         @SerializedName("collegeTypeId")
  34.         val collegeTypeId: Int = 0,
  35.         @SerializedName("collegeTypeName")
  36.         val collegeTypeName: String = "",
  37.         @SerializedName("universityId")
  38.         val universityId: Int = 0,
  39.         @SerializedName("universityName")
  40.         val universityName: String = "",
  41.         @SerializedName("campusName")
  42.         val campusName: String = "",
  43.         @SerializedName("establishedDate")
  44.         val establishedDate: String = "",
  45.         @SerializedName("wardNumber")
  46.         val wardNumber: Int = 0,
  47.         @SerializedName("placeName")
  48.         val placeName: String = "",
  49.         @SerializedName("latitude")
  50.         val latitude: String = "",
  51.         @SerializedName("longitude")
  52.         val longitude: String = "",
  53.         @SerializedName("altitude")
  54.         val altitude: String = "",
  55.         @SerializedName("campusChiefName")
  56.         val campusChiefName: String = "",
  57.         @SerializedName("campusChiefContactNumber")
  58.         val campusChiefContactNumber: String = "",
  59.         @SerializedName("collegeContactNumber")
  60.         val collegeContactNumber: String = "",
  61.         @SerializedName("faxNumber")
  62.         val faxNumber: String = "",
  63.         @SerializedName("contactPersonName")
  64.         val contactPersonName: String = "",
  65.         @SerializedName("contactPersonContactNumber")
  66.         val contactPersonContactNumber: String = "",
  67.         @SerializedName("emailAddress")
  68.         val emailAddress: String = "",
  69.         @SerializedName("websiteURL")
  70.         val websiteURL: String = "",
  71.         @SerializedName("collegeDetails")
  72.         val collegeDetails: List<CollegeDetails> = listOf(),
  73.         @SerializedName("totalCount")
  74.         val totalCount: Int = 0
  75.     ) {
  76.         @Keep
  77.         data class CollegeDetails(
  78.             @SerializedName("collegeDetailsId")
  79.             val collegeDetailsId: Int = 0,
  80.             @SerializedName("collegeId")
  81.             val collegeId: Int = 0,
  82.             @SerializedName("levelName")
  83.             val levelName: String = "",
  84.             @SerializedName("levelId")
  85.             val levelId: Int = 0,
  86.             @SerializedName("facultyId")
  87.             val facultyId: Int = 0,
  88.             @SerializedName("facultyName")
  89.             val facultyName: String = "",
  90.             @SerializedName("programId")
  91.             val programId: Int = 0,
  92.             @SerializedName("programName")
  93.             val programName: String = ""
  94.         )
  95.     }
  96. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement