public LogDataStats(IntPtr obj) { objPtr = obj; name = (string)MarshalPtrToUtf8.GetInstance().MarshalNativeToManaged(VidyoLogDataStatsGetnameNative(objPtr)); occurances = VidyoLogDataStatsGetoccurancesNative(objPtr); }
public UserStats(IntPtr obj) { objPtr = obj; LatencyTestStats csLatencyTestStats = new LatencyTestStats(VidyoUserStatsGetlatencyTestStatsNative(objPtr)); List <RoomStats> csRoomStats = new List <RoomStats>(); int nRoomStatsSize = 0; IntPtr nRoomStats = VidyoUserStatsGetroomStatsArrayNative(VidyoUserStatsGetroomStatsNative(objPtr), ref nRoomStatsSize); int nRoomStatsIndex = 0; while (nRoomStatsIndex < nRoomStatsSize) { RoomStats csTroomStats = new RoomStats(Marshal.ReadIntPtr(nRoomStats + (nRoomStatsIndex * Marshal.SizeOf(nRoomStats)))); csRoomStats.Add(csTroomStats); nRoomStatsIndex++; } host = (string)MarshalPtrToUtf8.GetInstance().MarshalNativeToManaged(VidyoUserStatsGethostNative(objPtr)); id = (string)MarshalPtrToUtf8.GetInstance().MarshalNativeToManaged(VidyoUserStatsGetidNative(objPtr)); latencyTestStats = csLatencyTestStats; port = VidyoUserStatsGetportNative(objPtr); roomStats = csRoomStats; serviceType = (string)MarshalPtrToUtf8.GetInstance().MarshalNativeToManaged(VidyoUserStatsGetserviceTypeNative(objPtr)); VidyoUserStatsFreeroomStatsArrayNative(nRoomStats, nRoomStatsSize); }
public MeetingInfo(IntPtr obj) { objPtr = obj; List <MeetingAttendee> csAttendees = new List <MeetingAttendee>(); int nAttendeesSize = 0; IntPtr nAttendees = VidyoMeetingInfoGetattendeesArrayNative(VidyoMeetingInfoGetattendeesNative(objPtr), ref nAttendeesSize); int nAttendeesIndex = 0; while (nAttendeesIndex < nAttendeesSize) { MeetingAttendee csTattendees = new MeetingAttendee(Marshal.ReadIntPtr(nAttendees + (nAttendeesIndex * Marshal.SizeOf(nAttendees)))); csAttendees.Add(csTattendees); nAttendeesIndex++; } attendees = csAttendees; body = (string)MarshalPtrToUtf8.GetInstance().MarshalNativeToManaged(VidyoMeetingInfoGetbodyNative(objPtr)); endDateTime = (string)MarshalPtrToUtf8.GetInstance().MarshalNativeToManaged(VidyoMeetingInfoGetendDateTimeNative(objPtr)); id = (string)MarshalPtrToUtf8.GetInstance().MarshalNativeToManaged(VidyoMeetingInfoGetidNative(objPtr)); isVidyoMeeting = VidyoMeetingInfoGetisVidyoMeetingNative(objPtr); location = (string)MarshalPtrToUtf8.GetInstance().MarshalNativeToManaged(VidyoMeetingInfoGetlocationNative(objPtr)); numOfAttendees = VidyoMeetingInfoGetnumOfAttendeesNative(objPtr); ownerEmail = (string)MarshalPtrToUtf8.GetInstance().MarshalNativeToManaged(VidyoMeetingInfoGetownerEmailNative(objPtr)); ownerName = (string)MarshalPtrToUtf8.GetInstance().MarshalNativeToManaged(VidyoMeetingInfoGetownerNameNative(objPtr)); startDateTime = (string)MarshalPtrToUtf8.GetInstance().MarshalNativeToManaged(VidyoMeetingInfoGetstartDateTimeNative(objPtr)); subject = (string)MarshalPtrToUtf8.GetInstance().MarshalNativeToManaged(VidyoMeetingInfoGetsubjectNative(objPtr)); totalBodyLength = VidyoMeetingInfoGettotalBodyLengthNative(objPtr); vidyoMeetingRoomLink = (string)MarshalPtrToUtf8.GetInstance().MarshalNativeToManaged(VidyoMeetingInfoGetvidyoMeetingRoomLinkNative(objPtr)); VidyoMeetingInfoFreeattendeesArrayNative(nAttendees, nAttendeesSize); }
public Property(IntPtr obj) { objPtr = obj; name = (string)MarshalPtrToUtf8.GetInstance().MarshalNativeToManaged(VidyoPropertyGetnameNative(objPtr)); value = (string)MarshalPtrToUtf8.GetInstance().MarshalNativeToManaged(VidyoPropertyGetvalueNative(objPtr)); }
private static void OnSetSubjectDelegate(IntPtr c, IntPtr subject) { if (_mIRegisterSubjectEventListener != null) { _mIRegisterSubjectEventListener.OnSetSubject((string)MarshalPtrToUtf8.GetInstance().MarshalNativeToManaged(subject)); } }
public FormField(IntPtr obj) { objPtr = obj; List <FormFieldOption> csOptions = new List <FormFieldOption>(); int nOptionsSize = 0; IntPtr nOptions = VidyoFormFieldGetoptionsArrayNative(VidyoFormFieldGetoptionsNative(objPtr), ref nOptionsSize); int nOptionsIndex = 0; while (nOptionsIndex < nOptionsSize) { FormFieldOption csToptions = new FormFieldOption(Marshal.ReadIntPtr(nOptions + (nOptionsIndex * Marshal.SizeOf(nOptions)))); csOptions.Add(csToptions); nOptionsIndex++; } cols = VidyoFormFieldGetcolsNative(objPtr); maxlength = VidyoFormFieldGetmaxlengthNative(objPtr); multiple = VidyoFormFieldGetmultipleNative(objPtr); name = (string)MarshalPtrToUtf8.GetInstance().MarshalNativeToManaged(VidyoFormFieldGetnameNative(objPtr)); options = csOptions; rows = VidyoFormFieldGetrowsNative(objPtr); size = VidyoFormFieldGetsizeNative(objPtr); type = VidyoFormFieldGettypeNative(objPtr); value = (string)MarshalPtrToUtf8.GetInstance().MarshalNativeToManaged(VidyoFormFieldGetvalueNative(objPtr)); wrap = VidyoFormFieldGetwrapNative(objPtr); VidyoFormFieldFreeoptionsArrayNative(nOptions, nOptionsSize); }
public FormFieldOption(IntPtr obj) { objPtr = obj; selected = VidyoFormFieldOptionGetselectedNative(objPtr); value = (string)MarshalPtrToUtf8.GetInstance().MarshalNativeToManaged(VidyoFormFieldOptionGetvalueNative(objPtr)); }
public RemoteMicrophoneStats(IntPtr obj) { objPtr = obj; List <LocalSpeakerStreamStats> csLocalSpeakerStreams = new List <LocalSpeakerStreamStats>(); int nLocalSpeakerStreamsSize = 0; IntPtr nLocalSpeakerStreams = VidyoRemoteMicrophoneStatsGetlocalSpeakerStreamsArrayNative(VidyoRemoteMicrophoneStatsGetlocalSpeakerStreamsNative(objPtr), ref nLocalSpeakerStreamsSize); int nLocalSpeakerStreamsIndex = 0; while (nLocalSpeakerStreamsIndex < nLocalSpeakerStreamsSize) { LocalSpeakerStreamStats csTlocalSpeakerStreams = new LocalSpeakerStreamStats(Marshal.ReadIntPtr(nLocalSpeakerStreams + (nLocalSpeakerStreamsIndex * Marshal.SizeOf(nLocalSpeakerStreams)))); csLocalSpeakerStreams.Add(csTlocalSpeakerStreams); nLocalSpeakerStreamsIndex++; } bitsPerSample = VidyoRemoteMicrophoneStatsGetbitsPerSampleNative(objPtr); codecDtx = VidyoRemoteMicrophoneStatsGetcodecDtxNative(objPtr); codecName = (string)MarshalPtrToUtf8.GetInstance().MarshalNativeToManaged(VidyoRemoteMicrophoneStatsGetcodecNameNative(objPtr)); codecQualitySetting = VidyoRemoteMicrophoneStatsGetcodecQualitySettingNative(objPtr); id = (string)MarshalPtrToUtf8.GetInstance().MarshalNativeToManaged(VidyoRemoteMicrophoneStatsGetidNative(objPtr)); lastFrameMs = VidyoRemoteMicrophoneStatsGetlastFrameMsNative(objPtr); localSpeakerStreams = csLocalSpeakerStreams; name = (string)MarshalPtrToUtf8.GetInstance().MarshalNativeToManaged(VidyoRemoteMicrophoneStatsGetnameNative(objPtr)); numberOfChannels = VidyoRemoteMicrophoneStatsGetnumberOfChannelsNative(objPtr); receiveNetworkBitRate = VidyoRemoteMicrophoneStatsGetreceiveNetworkBitRateNative(objPtr); receiveNetworkDelay = VidyoRemoteMicrophoneStatsGetreceiveNetworkDelayNative(objPtr); receiveNetworkDroppedPackets = VidyoRemoteMicrophoneStatsGetreceiveNetworkDroppedPacketsNative(objPtr); receiveNetworkJitter = VidyoRemoteMicrophoneStatsGetreceiveNetworkJitterNative(objPtr); receiveNetworkPacketsConcealed = VidyoRemoteMicrophoneStatsGetreceiveNetworkPacketsConcealedNative(objPtr); receiveNetworkPacketsLost = VidyoRemoteMicrophoneStatsGetreceiveNetworkPacketsLostNative(objPtr); sampleRateMeasured = VidyoRemoteMicrophoneStatsGetsampleRateMeasuredNative(objPtr); sampleRateSet = VidyoRemoteMicrophoneStatsGetsampleRateSetNative(objPtr); VidyoRemoteMicrophoneStatsFreelocalSpeakerStreamsArrayNative(nLocalSpeakerStreams, nLocalSpeakerStreamsSize); }
public CalendarConnProps(IntPtr obj) { objPtr = obj; propType = VidyoCalendarConnPropsGetpropTypeNative(objPtr); propValue = (string)MarshalPtrToUtf8.GetInstance().MarshalNativeToManaged(VidyoCalendarConnPropsGetpropValueNative(objPtr)); }
public NetworkInterfaceStats(IntPtr obj) { objPtr = obj; isUp = VidyoNetworkInterfaceStatsGetisUpNative(objPtr); name = (string)MarshalPtrToUtf8.GetInstance().MarshalNativeToManaged(VidyoNetworkInterfaceStatsGetnameNative(objPtr)); type = (string)MarshalPtrToUtf8.GetInstance().MarshalNativeToManaged(VidyoNetworkInterfaceStatsGettypeNative(objPtr)); }
public RoomInfo(IntPtr obj) { objPtr = obj; List <ChatMessage> csMessageList = new List <ChatMessage>(); int nMessageListSize = 0; IntPtr nMessageList = VidyoRoomInfoGetmessageListArrayNative(VidyoRoomInfoGetmessageListNative(objPtr), ref nMessageListSize); int nMessageListIndex = 0; while (nMessageListIndex < nMessageListSize) { ChatMessage csTmessageList = new ChatMessage(Marshal.ReadIntPtr(nMessageList + (nMessageListIndex * Marshal.SizeOf(nMessageList)))); csMessageList.Add(csTmessageList); nMessageListIndex++; } List <String> csOwnerList = new List <String>(); int nOwnerListSize = 0; IntPtr nOwnerList = VidyoRoomInfoGetownerListArrayNative(VidyoRoomInfoGetownerListNative(objPtr), ref nOwnerListSize); int nOwnerListIndex = 0; while (nOwnerListIndex < nOwnerListSize) { csOwnerList.Add((string)MarshalPtrToUtf8.GetInstance().MarshalNativeToManaged(Marshal.ReadIntPtr(nOwnerList + (nOwnerListIndex * Marshal.SizeOf(nOwnerList))))); nOwnerListIndex++; } List <String> csUserList = new List <String>(); int nUserListSize = 0; IntPtr nUserList = VidyoRoomInfoGetuserListArrayNative(VidyoRoomInfoGetuserListNative(objPtr), ref nUserListSize); int nUserListIndex = 0; while (nUserListIndex < nUserListSize) { csUserList.Add((string)MarshalPtrToUtf8.GetInstance().MarshalNativeToManaged(Marshal.ReadIntPtr(nUserList + (nUserListIndex * Marshal.SizeOf(nUserList))))); nUserListIndex++; } creationTime = VidyoRoomInfoGetcreationTimeNative(objPtr); description = (string)MarshalPtrToUtf8.GetInstance().MarshalNativeToManaged(VidyoRoomInfoGetdescriptionNative(objPtr)); extension = (string)MarshalPtrToUtf8.GetInstance().MarshalNativeToManaged(VidyoRoomInfoGetextensionNative(objPtr)); id = (string)MarshalPtrToUtf8.GetInstance().MarshalNativeToManaged(VidyoRoomInfoGetidNative(objPtr)); isFavorite = VidyoRoomInfoGetisFavoriteNative(objPtr); isMembersOnly = VidyoRoomInfoGetisMembersOnlyNative(objPtr); isPasswordProtected = VidyoRoomInfoGetisPasswordProtectedNative(objPtr); isPublic = VidyoRoomInfoGetisPublicNative(objPtr); language = (string)MarshalPtrToUtf8.GetInstance().MarshalNativeToManaged(VidyoRoomInfoGetlanguageNative(objPtr)); maxParticipants = VidyoRoomInfoGetmaxParticipantsNative(objPtr); messageList = csMessageList; name = (string)MarshalPtrToUtf8.GetInstance().MarshalNativeToManaged(VidyoRoomInfoGetnameNative(objPtr)); numUsers = VidyoRoomInfoGetnumUsersNative(objPtr); ownerList = csOwnerList; type = VidyoRoomInfoGettypeNative(objPtr); userList = csUserList; VidyoRoomInfoFreeuserListArrayNative(nUserList, nUserListSize); VidyoRoomInfoFreeownerListArrayNative(nOwnerList, nOwnerListSize); VidyoRoomInfoFreemessageListArrayNative(nMessageList, nMessageListSize); }
public Contact(IntPtr obj) { objPtr = obj; List <ContactProperty> csEmails = new List <ContactProperty>(); int nEmailsSize = 0; IntPtr nEmails = VidyoContactGetemailsArrayNative(VidyoContactGetemailsNative(objPtr), ref nEmailsSize); int nEmailsIndex = 0; while (nEmailsIndex < nEmailsSize) { ContactProperty csTemails = new ContactProperty(Marshal.ReadIntPtr(nEmails + (nEmailsIndex * Marshal.SizeOf(nEmails)))); csEmails.Add(csTemails); nEmailsIndex++; } List <String> csGroups = new List <String>(); int nGroupsSize = 0; IntPtr nGroups = VidyoContactGetgroupsArrayNative(VidyoContactGetgroupsNative(objPtr), ref nGroupsSize); int nGroupsIndex = 0; while (nGroupsIndex < nGroupsSize) { csGroups.Add((string)MarshalPtrToUtf8.GetInstance().MarshalNativeToManaged(Marshal.ReadIntPtr(nGroups + (nGroupsIndex * Marshal.SizeOf(nGroups))))); nGroupsIndex++; } List <ContactProperty> csTelephones = new List <ContactProperty>(); int nTelephonesSize = 0; IntPtr nTelephones = VidyoContactGettelephonesArrayNative(VidyoContactGettelephonesNative(objPtr), ref nTelephonesSize); int nTelephonesIndex = 0; while (nTelephonesIndex < nTelephonesSize) { ContactProperty csTtelephones = new ContactProperty(Marshal.ReadIntPtr(nTelephones + (nTelephonesIndex * Marshal.SizeOf(nTelephones)))); csTelephones.Add(csTtelephones); nTelephonesIndex++; } department = (string)MarshalPtrToUtf8.GetInstance().MarshalNativeToManaged(VidyoContactGetdepartmentNative(objPtr)); emails = csEmails; groups = csGroups; handle = (string)MarshalPtrToUtf8.GetInstance().MarshalNativeToManaged(VidyoContactGethandleNative(objPtr)); id = (string)MarshalPtrToUtf8.GetInstance().MarshalNativeToManaged(VidyoContactGetidNative(objPtr)); name = (string)MarshalPtrToUtf8.GetInstance().MarshalNativeToManaged(VidyoContactGetnameNative(objPtr)); nickname = (string)MarshalPtrToUtf8.GetInstance().MarshalNativeToManaged(VidyoContactGetnicknameNative(objPtr)); photo = (string)MarshalPtrToUtf8.GetInstance().MarshalNativeToManaged(VidyoContactGetphotoNative(objPtr)); presenceState = VidyoContactGetpresenceStateNative(objPtr); presenceStatus = (string)MarshalPtrToUtf8.GetInstance().MarshalNativeToManaged(VidyoContactGetpresenceStatusNative(objPtr)); publicationState = VidyoContactGetpublicationStateNative(objPtr); subscriptionState = VidyoContactGetsubscriptionStateNative(objPtr); telephones = csTelephones; timestamp = VidyoContactGettimestampNative(objPtr); title = (string)MarshalPtrToUtf8.GetInstance().MarshalNativeToManaged(VidyoContactGettitleNative(objPtr)); VidyoContactFreetelephonesArrayNative(nTelephones, nTelephonesSize); VidyoContactFreegroupsArrayNative(nGroups, nGroupsSize); VidyoContactFreeemailsArrayNative(nEmails, nEmailsSize); }
public void SetWebProxyCredentials(String webProxyUserName, String webProxyPassword) { IntPtr nWebProxyUserName = MarshalPtrToUtf8.GetInstance().MarshalManagedToNative(webProxyUserName ?? string.Empty); IntPtr nWebProxyPassword = MarshalPtrToUtf8.GetInstance().MarshalManagedToNative(webProxyPassword ?? string.Empty); VidyoApplicationSetWebProxyCredentialsNative(objPtr, nWebProxyUserName, nWebProxyPassword); Marshal.FreeHGlobal(nWebProxyPassword); Marshal.FreeHGlobal(nWebProxyUserName); }
public Boolean SendMessage(String message) { IntPtr nMessage = MarshalPtrToUtf8.GetInstance().MarshalManagedToNative(message ?? string.Empty); Boolean ret = VidyoCallSendMessageNative(objPtr, nMessage); Marshal.FreeHGlobal(nMessage); return(ret); }
public LocalMonitorState GetPreviewFrameDataUri(ulong maxWidth, ulong maxHeight, String videoFrame) { IntPtr nVideoFrame = MarshalPtrToUtf8.GetInstance().MarshalManagedToNative(videoFrame ?? string.Empty); LocalMonitorState ret = VidyoLocalMonitorGetPreviewFrameDataUriNative(objPtr, maxWidth, maxHeight, nVideoFrame); Marshal.FreeHGlobal(nVideoFrame); return(ret); }
public Boolean SetSubject(String subject) { IntPtr nSubject = MarshalPtrToUtf8.GetInstance().MarshalManagedToNative(subject ?? string.Empty); Boolean ret = VidyoCallSetSubjectNative(objPtr, nSubject); Marshal.FreeHGlobal(nSubject); return(ret); }
public MeetingAttendee(IntPtr obj) { objPtr = obj; email = (string)MarshalPtrToUtf8.GetInstance().MarshalNativeToManaged(VidyoMeetingAttendeeGetemailNative(objPtr)); name = (string)MarshalPtrToUtf8.GetInstance().MarshalNativeToManaged(VidyoMeetingAttendeeGetnameNative(objPtr)); role = VidyoMeetingAttendeeGetroleNative(objPtr); status = VidyoMeetingAttendeeGetstatusNative(objPtr); }
public static Boolean SetExperimentalOptions(String options) { IntPtr nOptions = MarshalPtrToUtf8.GetInstance().MarshalManagedToNative(options ?? string.Empty); Boolean ret = VidyoClientSetExperimentalOptionsNative(nOptions); Marshal.FreeHGlobal(nOptions); return(ret); }
private static void OnPreviewDataUriCompleteDelegate(IntPtr w, IntPtr videoFrame, LocalWindowShareState state) { IntPtr n_videoFrame = VidyoLocalWindowShareOnPreviewDataUriCompleteGetvideoFrameCStr(videoFrame); if (_mIGetPreviewFrameDataUriAsync != null) { _mIGetPreviewFrameDataUriAsync.OnPreviewDataUriComplete((string)MarshalPtrToUtf8.GetInstance().MarshalNativeToManaged(n_videoFrame), state); } }
public Boolean SearchMeetingsByDay(uint year, uint month, uint day, String createToken) { IntPtr nCreateToken = MarshalPtrToUtf8.GetInstance().MarshalManagedToNative(createToken ?? string.Empty); Boolean ret = VidyoCalendarSearchMeetingsByDayNative(objPtr, year, month, day, nCreateToken); Marshal.FreeHGlobal(nCreateToken); return(ret); }
public Boolean EnableDebugRecording(String dir) { IntPtr nDir = MarshalPtrToUtf8.GetInstance().MarshalManagedToNative(dir ?? string.Empty); Boolean ret = VidyoLocalMicrophoneEnableDebugRecordingNative(objPtr, nDir); Marshal.FreeHGlobal(nDir); return(ret); }
public Boolean SetPreviewLabel(String previewLabel) { IntPtr nPreviewLabel = MarshalPtrToUtf8.GetInstance().MarshalManagedToNative(previewLabel ?? string.Empty); Boolean ret = VidyoLocalWindowShareSetPreviewLabelNative(objPtr, nPreviewLabel); Marshal.FreeHGlobal(nPreviewLabel); return(ret); }
public Boolean CreateMeetingWithId(String id, MeetingFeedback feedback, String createToken) { IntPtr nId = MarshalPtrToUtf8.GetInstance().MarshalManagedToNative(id ?? string.Empty); IntPtr nCreateToken = MarshalPtrToUtf8.GetInstance().MarshalManagedToNative(createToken ?? string.Empty); Boolean ret = VidyoCalendarCreateMeetingWithIdNative(objPtr, nId, (feedback != null) ? feedback.GetObjectPtr():IntPtr.Zero, nCreateToken); Marshal.FreeHGlobal(nCreateToken); Marshal.FreeHGlobal(nId); return(ret); }
public LocalRendererStreamStats(IntPtr obj) { objPtr = obj; bufferDropped = VidyoLocalRendererStreamStatsGetbufferDroppedNative(objPtr); bufferSize = VidyoLocalRendererStreamStatsGetbufferSizeNative(objPtr); height = VidyoLocalRendererStreamStatsGetheightNative(objPtr); id = (string)MarshalPtrToUtf8.GetInstance().MarshalNativeToManaged(VidyoLocalRendererStreamStatsGetidNative(objPtr)); name = (string)MarshalPtrToUtf8.GetInstance().MarshalNativeToManaged(VidyoLocalRendererStreamStatsGetnameNative(objPtr)); width = VidyoLocalRendererStreamStatsGetwidthNative(objPtr); }
public Boolean RegisterCalendarService(String pluginServiceName, String dllName) { IntPtr nPluginServiceName = MarshalPtrToUtf8.GetInstance().MarshalManagedToNative(pluginServiceName ?? string.Empty); IntPtr nDllName = MarshalPtrToUtf8.GetInstance().MarshalManagedToNative(dllName ?? string.Empty); Boolean ret = VidyoCalendarManagerRegisterCalendarServiceNative(objPtr, nPluginServiceName, nDllName); Marshal.FreeHGlobal(nDllName); Marshal.FreeHGlobal(nPluginServiceName); return(ret); }
private static void DownloadCompletedCallbackDelegate(IntPtr app, IntPtr version, IntPtr downloadedFile) { IntPtr n_version = VidyoApplicationDownloadCompletedCallbackGetversionCStr(version); IntPtr n_downloadedFile = VidyoApplicationDownloadCompletedCallbackGetdownloadedFileCStr(downloadedFile); if (_mIRegisterUpdaterEventListener != null) { _mIRegisterUpdaterEventListener.DownloadCompletedCallback((string)MarshalPtrToUtf8.GetInstance().MarshalNativeToManaged(n_version), (string)MarshalPtrToUtf8.GetInstance().MarshalNativeToManaged(n_downloadedFile)); } }
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 LatencyTestDataStats(IntPtr obj) { objPtr = obj; address = (string)MarshalPtrToUtf8.GetInstance().MarshalNativeToManaged(VidyoLatencyTestDataStatsGetaddressNative(objPtr)); latencyMs = VidyoLatencyTestDataStatsGetlatencyMsNative(objPtr); latitude = VidyoLatencyTestDataStatsGetlatitudeNative(objPtr); longitude = VidyoLatencyTestDataStatsGetlongitudeNative(objPtr); name = (string)MarshalPtrToUtf8.GetInstance().MarshalNativeToManaged(VidyoLatencyTestDataStatsGetnameNative(objPtr)); responseReceived = VidyoLatencyTestDataStatsGetresponseReceivedNative(objPtr); }
public LocalSpeakerStats(IntPtr obj) { objPtr = obj; bitsPerSample = VidyoLocalSpeakerStatsGetbitsPerSampleNative(objPtr); format = VidyoLocalSpeakerStatsGetformatNative(objPtr); id = (string)MarshalPtrToUtf8.GetInstance().MarshalNativeToManaged(VidyoLocalSpeakerStatsGetidNative(objPtr)); name = (string)MarshalPtrToUtf8.GetInstance().MarshalNativeToManaged(VidyoLocalSpeakerStatsGetnameNative(objPtr)); numberOfChannels = VidyoLocalSpeakerStatsGetnumberOfChannelsNative(objPtr); sampleRateMeasured = VidyoLocalSpeakerStatsGetsampleRateMeasuredNative(objPtr); sampleRateSet = VidyoLocalSpeakerStatsGetsampleRateSetNative(objPtr); }
public MeetingSearchResult SearchMeetings(String searchText, String beginDateTime, String endDateTime, uint index, uint pageSize) { IntPtr nSearchText = MarshalPtrToUtf8.GetInstance().MarshalManagedToNative(searchText ?? string.Empty); IntPtr nBeginDateTime = MarshalPtrToUtf8.GetInstance().MarshalManagedToNative(beginDateTime ?? string.Empty); IntPtr nEndDateTime = MarshalPtrToUtf8.GetInstance().MarshalManagedToNative(endDateTime ?? string.Empty); MeetingSearchResult ret = VidyoCalendarSearchMeetingsNative(objPtr, nSearchText, nBeginDateTime, nEndDateTime, index, pageSize); Marshal.FreeHGlobal(nEndDateTime); Marshal.FreeHGlobal(nBeginDateTime); Marshal.FreeHGlobal(nSearchText); return(ret); }