Skip to main content

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:

APIParams
createUseruserData: UserType
updateUseruser: UserType,
user_id: String
getUseruser_id: String (required)
getUserspage: number,
perPage: number
deleteUseruser_id: String