Hi, i'm new in using PlayFab, i'm having problem using the server models. Ive seen the tutorial about the Update using the server model, but when i try to use inside my code, it seems like i dont have the server models inside, only got the client model. I try to get the latest asset playfab, but still got the same things, server models not exist. Its it got a specific method to call the server models?
public void UpdateUserReadOnlyData()
{
var updateRequest = new ServerModels.UpdateUserDataRequest()
{
PlayFabId = "user PlayFabId here - obtained from any successul LoginResult",
Data = new Dictionary()
{
{"Father", "Fred"},
{"Mother", "Alice"},
{"Sister", "Lucy"},
{"Brother", "Doug"}
},
Permission = PlayFab.ServerModels.UserDataPermission.Public
};
PlayFabServerAPI.UpdateUserReadOnlyData(updateRequest,
(result) => {
Debug.Log("Set read-only user data successful");
}, (error) => {
Debug.Log("Got error updating read-only user data:");
Debug.Log(error.ErrorMessage);
});
}