Skip to content

Instantly share code, notes, and snippets.

@cp-hardik-p
Created August 29, 2022 12:25
Show Gist options
  • Save cp-hardik-p/3abf5e3082cec428527b14863ac8af98 to your computer and use it in GitHub Desktop.
Save cp-hardik-p/3abf5e3082cec428527b14863ac8af98 to your computer and use it in GitHub Desktop.
suspend fun saveEmployeeInfo(eName: String, eDesignation: String) {
context.employeeProtoDataStore.updateData { employeeData ->
employeeData.toBuilder()
.setEmpName(eName)
.setEmpDesignation(eDesignation)
.build()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment