MemberProfile

class MemberProfile(var uniqueId: String? = null, var memberId: String? = null, var messageId: String? = null, var firstName: String? = null, var middleName: String? = null, var lastName: String? = null, var address: MemberAddress? = null, var dob: String? = null, var email: String? = null, var gender: String? = null, var dayPhone: String? = null, var cellPhone: String? = null)

MemberProfile — represents the profile information of a member.

Returned by:

Properties

  • uniqueId Tenant-unique external identifier (e.g., employee ID). This is the primary external identifier.

  • memberId Unique identifier for the member (assigned by backend).

  • messageId Identifier for the message or response envelope (optional).

  • firstName Member’s first name.

  • middleName Member’s middle name (optional).

  • lastName Member’s last name.

  • address Member’s address information (MemberAddress).

  • dob Date of birth (ISO format yyyy-MM-dd).

  • email Email address.

  • gender Gender string (e.g., "M" or "F", depending on tenant rules).

  • dayPhone Optional daytime phone number.

  • cellPhone Optional cell phone number.

Notes

  • Always check for null on optional fields like middleName, dayPhone, and cellPhone.

  • memberId is required for all subsequent API calls tied to the member.

Android (Kotlin) — fetching profile

lifecycleScope.launch {
try {
val profile = AFCore.profile().get()
println("Welcome ${profile.firstName} ${profile.lastName}")
} catch (t: Throwable) {
showError("Failed to fetch profile: ${t.message}")
}
}

iOS (Swift) — fetching profile

Task {
do {
let profile = try await AFCore.shared.profile().get()
print("Welcome \\(profile.firstName ?? "") \\(profile.lastName ?? "")")
} catch {
print("Failed to fetch profile: \\(error.localizedDescription)")
}
}

Constructors

Link copied to clipboard
constructor(uniqueId: String? = null, memberId: String? = null, messageId: String? = null, firstName: String? = null, middleName: String? = null, lastName: String? = null, address: MemberAddress? = null, dob: String? = null, email: String? = null, gender: String? = null, dayPhone: String? = null, cellPhone: String? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var dob: String?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun toString(): String