User Type
Dealing With UserType
In order to deal with the User and the functionality related to User, we use the interface UserType
import com.google.gson.annotations.SerializedName
data class User(
var id: String? = null,
var name: String? = null,
@SerializedName("phone_number") var phoneNumber: String? = null,
var email: String? = null,
@SerializedName("date_of_birth") var dateOfBirth: String? = null,
var gender: String? = null,
@SerializedName("insurance_id") var insuranceId: String? = null,
@SerializedName("policy_number") var policyNumber: String? = null,
@SerializedName("nationality_number") var nationalityNumber: String? = null,
var height: Int? = null,
var weight: Int? = null,
@SerializedName("blood_type") var bloodType: String? = null,
var smoker: String? = null,
var alcoholic: String? = null,
@SerializedName("marital_status") var maritalStatus: String? = null,
@SerializedName("created_at") var createdAt: String? = null,
@SerializedName("updated_at") var updatedAt: String? = null
)
User Functionalities
The following are the functions related to user management:
API | Params |
---|---|
createUser | userData: UserType |
updateUser | user: UserType, user_id: String |
getUser | user_id: String (required) |
getUsers | page: number, perPage: number |
deleteUser | user_id: String |