public ChatMessage(IntPtr obj) { objPtr = obj; body = (string)MarshalPtrToUtf8.GetInstance().MarshalNativeToManaged(VidyoChatMessageGetbodyNative(objPtr)); id = VidyoChatMessageGetidNative(objPtr); senderType = VidyoChatMessageGetsenderTypeNative(objPtr); timestamp = VidyoChatMessageGettimestampNative(objPtr); type = VidyoChatMessageGettypeNative(objPtr); userId = (string)MarshalPtrToUtf8.GetInstance().MarshalNativeToManaged(VidyoChatMessageGetuserIdNative(objPtr)); }
public ChatMessage(IntPtr obj) { objPtr = obj; body = Marshal.PtrToStringAnsi(VidyoChatMessageGetbodyNative(objPtr)); id = VidyoChatMessageGetidNative(objPtr); senderType = VidyoChatMessageGetsenderTypeNative(objPtr); timestamp = VidyoChatMessageGettimestampNative(objPtr); type = VidyoChatMessageGettypeNative(objPtr); userId = Marshal.PtrToStringAnsi(VidyoChatMessageGetuserIdNative(objPtr)); }