Developer Documentation
Our new developer documentation is now available. Please check it out!

Room.UpdateUserData

public virtual Task<RpcResult> UpdateUserData(IUserData userData)
public virtual Task<RpcResult> UpdateUserData(byte[] bytes)

Update arbitrary userdata of self (note: Odin)

Info

Be aware that the task is created for resolving Msgpack request/response result as Room. Unless handled correctly should not be awaited by the corresponding context.

Parameters

NameTypeDescription
userDataIUserDataarbitrary data
bytesByte[]raw binary data

Returns

TypeDescription
Task<RpcResult>Thunk task that will not run (see )

Variants

UpdateUserData(userData)

public virtual Task<RpcResult> UpdateUserData(IUserData userData)

Update arbitrary userdata of self (note: Odin)

Warning

Be aware that the task is created for resolving Msgpack request/response result as Room. Unless handled correctly should not be awaited by the corresponding context.

Parameters

NameTypeDescription
userDataIUserDataarbitrary data

Returns

TypeDescription
Task<RpcResult>Thunk task that will not run (see )

UpdateUserData(bytes)

public virtual Task<RpcResult> UpdateUserData(byte[] bytes)

Update binary userdata of self (note: Odin)

Warning

Be aware that the task is created for resolving Msgpack request/response result as Room. Unless handled correctly should not be awaited by the corresponding context.

Parameters

NameTypeDescription
bytesByte[]raw binary data

Returns

TypeDescription
Task<RpcResult>Thunk task that will not run (see )