Skip to main content
Version: 2.x

Interface IUserData

interface for transmitting UserData

Declaration
public interface IUserData

Derived:
OdinNative.Wrapper.UserData

Methods

IsEmpty()

Indicates whether data is null or empty

Declaration
bool IsEmpty()
Returns

System.Boolean: true if empty

ToBytes()

Used for converting Data on network level

Declaration
byte[] ToBytes()
Returns

System.Byte[]: arbitrary data

ToJson()

Json representation of raw buffer

Declaration
string ToJson()
Returns

System.String

ToType<T>()

Type deserialization of json string buffer content

Declaration
T ToType<T>() where T : class
Returns

<T>

Type Parameters
  • T